public function DefaultPluginManager::getDefinitions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
Gets the definition of all plugins for this type.
Return value
mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.
Overrides DiscoveryTrait::getDefinitions
21 calls to DefaultPluginManager::getDefinitions()
- ActionManager::getDefinitionsByType in core/
lib/ Drupal/ Core/ Action/ ActionManager.php - Gets the plugin definitions for this entity type.
- ArchiverManager::getInstance in core/
lib/ Drupal/ Core/ Archiver/ ArchiverManager.php - Gets a preconfigured instance of a plugin.
- 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.
- CKEditorPluginManager::getButtons in core/
modules/ ckeditor/ src/ CKEditorPluginManager.php - Retrieves all available CKEditor buttons, keyed by plugin ID.
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 165 - Contains \Drupal\Core\Plugin\DefaultPluginManager.
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;
}