function VariationCacheFactory::get
Same name in other branches
- 11.x core/lib/Drupal/Core/Cache/VariationCacheFactory.php \Drupal\Core\Cache\VariationCacheFactory::get()
Overrides VariationCacheFactoryInterface::get
File
-
core/
lib/ Drupal/ Core/ Cache/ VariationCacheFactory.php, line 41
Class
- VariationCacheFactory
- Defines the variation cache factory.
Namespace
Drupal\Core\CacheCode
public function get($bin) {
if (!isset($this->bins[$bin])) {
$this->bins[$bin] = new VariationCache($this->requestStack, $this->cacheFactory
->get($bin), $this->cacheContextsManager);
}
return $this->bins[$bin];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.