protected function DefaultPluginManager::setCachedDefinitions in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::setCachedDefinitions()
- 9 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::setCachedDefinitions()
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 core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php - Gets the definition of all plugins for this type.
File
- core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 219
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
protected function setCachedDefinitions($definitions) {
$this
->cacheSet($this->cacheKey, $definitions, Cache::PERMANENT, $this->cacheTags);
$this->definitions = $definitions;
}