protected function DefaultPluginManager::cacheGet in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::cacheGet()
Fetches from the cache backend, respecting the use caches flag.
See also
\Drupal\Core\Cache\CacheBackendInterface::get()
1 call to DefaultPluginManager::cacheGet()
- DefaultPluginManager::getCachedDefinitions in lib/
Drupal/ Component/ Plugin/ DefaultPluginManager.php - Returns the cached plugin definitions of the decorated discovery class.
File
- lib/
Drupal/ Component/ Plugin/ DefaultPluginManager.php, line 244 - Contains \Drupal\Core\Plugin\DefaultPluginManager.
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
protected function cacheGet($cid) {
if ($this->useCaches && $this->cacheBackend) {
return $this->cacheBackend
->get($cid);
}
return FALSE;
}