Same name and namespace in other branches
  1. 5.0.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setCache() 1 comment
  2. 8.x-4.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setCache() 1 comment

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\advagg

Code

public function setCache(CacheBackendInterface $cacheBackend) {
    $this->cache = $cacheBackend;
    return $this;
}