You are here

protected function DefaultPluginManager::setCachedDefinitions in Plug 7

Sets a cache of plugin definitions for the decorated discovery class.

Parameters

array $definitions: List of definitions to store in cache.

1 call to DefaultPluginManager::setCachedDefinitions()
DefaultPluginManager::getDefinitions in lib/Drupal/Core/Plugin/DefaultPluginManager.php
Gets the definition of all plugins for this type.

File

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

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function setCachedDefinitions($definitions) {
  $this
    ->cacheSet($this->cacheKey, $definitions, CACHE_PERMANENT);
  $this->definitions = $definitions;
}