function DefaultPluginManager::getDefinitions
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
- 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
- 11.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
Overrides DiscoveryTrait::getDefinitions
33 calls to DefaultPluginManager::getDefinitions()
- ActionManager::getDefinitionsByType in core/
lib/ Drupal/ Core/ Action/ ActionManager.php - Gets the plugin definitions for this entity type.
- ArchiverManager::getExtensions in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - Returns a string of supported archive extensions.
- ArchiverManager::getInstance in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - BreakpointManager::getBreakpointsByGroup in core/
modules/ breakpoint/ src/ BreakpointManager.php - Gets breakpoints for the specified group.
- BreakpointManager::getGroups in core/
modules/ breakpoint/ src/ BreakpointManager.php - Gets all the existing breakpoint groups.
2 methods override DefaultPluginManager::getDefinitions()
- CategorizingPluginManager::getDefinitions in core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php - Provides some test definitions to the trait.
- LocalTaskManager::getDefinitions in core/
lib/ Drupal/ Core/ Menu/ LocalTaskManager.php - Gets the definition of all plugins for this type.
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 178
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
public function getDefinitions() {
$definitions = $this->getCachedDefinitions();
if (!isset($definitions)) {
$definitions = $this->findDefinitions();
$this->setCachedDefinitions($definitions);
}
return $definitions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.