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

The set cache backend.

Paramètres

\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The AdvAgg cache.

Return value

$this This object.

Fichier

src/AdvaggSettersTrait.php, line 137

Classe

AdvaggSettersTrait
The trait setters of ADVAGG module.

Namespace

Drupal\advagg

Code

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