class CacheDecorator

Enables static and persistent caching of discovered plugin definitions.

Hierarchy

Expanded class hierarchy of CacheDecorator

7 files declare their use of CacheDecorator
1 string reference to 'CacheDecorator'

File

drupal/core/lib/Drupal/Core/Plugin/Discovery/CacheDecorator.php, line 16
Definition of Drupal\Core\Plugin\Discovery\CacheDecorator.

Namespace

Drupal\Core\Plugin\Discovery
View source

Members

Namesort descending Modifiers Type Description Overrides
CacheDecorator::$cacheBin protected property The cache bin used to store the definition list.
CacheDecorator::$cacheKey protected property The cache key used to store the definition list.
CacheDecorator::$decorated protected property The Discovery object being decorated.
CacheDecorator::$definitions protected property The plugin definitions of the decorated discovery class.
CacheDecorator::clearCachedDefinitions public function Implements \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::clearCachedDefinitions(). Overrides CachedDiscoveryInterface::clearCachedDefinitions
CacheDecorator::getCachedDefinitions protected function Returns the cached plugin definitions of the decorated discovery class.
CacheDecorator::getDefinition public function Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinition(). Overrides DiscoveryInterface::getDefinition
CacheDecorator::getDefinitions public function Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinitions(). Overrides DiscoveryInterface::getDefinitions
CacheDecorator::setCachedDefinitions protected function Sets a cache of plugin definitions for the decorated discovery class.
CacheDecorator::__call public function Passes through all unknown calls onto the decorated object.
CacheDecorator::__construct public function Constructs a Drupal\Core\Plugin\Discovery\CacheDecorator object.