function DefaultPluginManager::getDefinitions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
  2. 8.9.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
  3. 10 core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()

Overrides DiscoveryTrait::getDefinitions

35 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
BreakpointManager::getGroups in core/modules/breakpoint/src/BreakpointManager.php

... See full list

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 210

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

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.