You are here

public function EntityWarmer::setEntityMemoryCache in Warmer 2.x

Same name and namespace in other branches
  1. 8 modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php \Drupal\warmer_entity\Plugin\warmer\EntityWarmer::setEntityMemoryCache()

Injects the entity memory cache.

Parameters

\Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache: The memory cache.

File

modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php, line 75

Class

EntityWarmer
The cache warmer for the built-in entity cache.

Namespace

Drupal\warmer_entity\Plugin\warmer

Code

public function setEntityMemoryCache(MemoryCacheInterface $memory_cache) {
  $this->entityMemoryCache = $memory_cache;
}