function VariationCacheInterface::get
Same name in other branches
- 11.x core/lib/Drupal/Core/Cache/VariationCacheInterface.php \Drupal\Core\Cache\VariationCacheInterface::get()
Gets a cache entry based on cache keys.
Parameters
string[] $keys: The cache keys to retrieve the cache entry for.
\Drupal\Core\Cache\CacheableDependencyInterface $initial_cacheability: The cache metadata of the data to store before other systems had a chance to adjust it. This is also commonly known as "pre-bubbling" cacheability.
Return value
object|false The cache item or FALSE on failure.
See also
\Drupal\Core\Cache\CacheBackendInterface::get()
1 method overrides VariationCacheInterface::get()
- VariationCache::get in core/
lib/ Drupal/ Core/ Cache/ VariationCache.php - Gets a cache entry based on cache keys.
File
-
core/
lib/ Drupal/ Core/ Cache/ VariationCacheInterface.php, line 30
Class
- VariationCacheInterface
- Defines an interface for variation cache implementations.
Namespace
Drupal\Core\CacheCode
public function get(array $keys, CacheableDependencyInterface $initial_cacheability);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.