function DefaultPluginManager::getCachedDefinitions
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getCachedDefinitions()
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getCachedDefinitions()
- 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getCachedDefinitions()
Returns the cached plugin definitions of the decorated discovery class.
Return value
array|null On success this will return an array of plugin definitions. On failure this should return NULL, indicating to other methods that this has not yet been defined. Success with no values should return as an empty array and would actually be returned by the getDefinitions() method.
1 call to DefaultPluginManager::getCachedDefinitions()
- 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 247
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
protected function getCachedDefinitions() {
if (!isset($this->definitions) && ($cache = $this->cacheGet($this->cacheKey))) {
$this->definitions = $cache->data;
}
return $this->definitions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.