function CacheCollectorInterface::get
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
- 8.9.x core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
- 10 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
Gets value from the cache.
Parameters
string $key: Key that identifies the data.
Return value
mixed The corresponding cache data.
2 methods override CacheCollectorInterface::get()
- CacheCollector::get in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php - Gets value from the cache.
- MenuActiveTrail::get in core/
lib/ Drupal/ Core/ ProxyClass/ Menu/ MenuActiveTrail.php - Gets value from the cache.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheCollectorInterface.php, line 30
Class
- CacheCollectorInterface
- Provides a caching wrapper to be used in place of large structures.
Namespace
Drupal\Core\CacheCode
public function get($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.