You are here

protected function DefaultPluginManager::cacheGet in Plug 7

Fetches from the cache backend, respecting the use caches flag.

See also

\DrupalCacheInterface::get()

1 call to DefaultPluginManager::cacheGet()
DefaultPluginManager::getCachedDefinitions in lib/Drupal/Core/Plugin/DefaultPluginManager.php
Returns the cached plugin definitions of the decorated discovery class.

File

lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 224
Contains \Drupal\Core\Plugin\DefaultPluginManager.

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function cacheGet($cid) {
  if ($this->useCaches && $this->cacheBackend) {
    return $this->cacheBackend
      ->get($cid);
  }
  return FALSE;
}