Same name in other branches
- 6.0.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setCache()
- 8.x-4.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setCache()
The set cache backend.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The AdvAgg cache.
Return value
$this This object.
File
-
src/
AdvaggSettersTrait.php, line 137
Class
- AdvaggSettersTrait
- The trait setters of ADVAGG module.
Namespace
Drupal\advaggCode
public function setCache(CacheBackendInterface $cacheBackend) {
$this->cache = $cacheBackend;
return $this;
}