function DefaultPluginManager::getDiscovery

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

Overrides PluginManagerBase::getDiscovery

1 call to DefaultPluginManager::getDiscovery()
ConstraintManager::getDiscovery in core/lib/Drupal/Core/Validation/ConstraintManager.php
Gets the plugin discovery.
12 methods override DefaultPluginManager::getDiscovery()
BreakpointManager::getDiscovery in core/modules/breakpoint/src/BreakpointManager.php
Gets the plugin discovery.
ConfigMapperManager::getDiscovery in core/modules/config_translation/src/ConfigMapperManager.php
Gets the plugin discovery.
ConstraintManager::getDiscovery in core/lib/Drupal/Core/Validation/ConstraintManager.php
Gets the plugin discovery.
ContextualLinkManager::getDiscovery in core/lib/Drupal/Core/Menu/ContextualLinkManager.php
Gets the plugin discovery.
HelpTopicPluginManager::getDiscovery in core/modules/help_topics/src/HelpTopicPluginManager.php
Gets the plugin discovery.

... See full list

File

core/lib/Drupal/Core/Plugin/DefaultPluginManager.php, line 259

Class

DefaultPluginManager
Base class for plugin managers.

Namespace

Drupal\Core\Plugin

Code

protected function getDiscovery() {
    if (!$this->discovery) {
        $discovery = new AnnotatedClassDiscovery($this->subdir, $this->namespaces, $this->pluginDefinitionAnnotationName, $this->additionalAnnotationNamespaces);
        $this->discovery = new ContainerDerivativeDiscoveryDecorator($discovery);
    }
    return $this->discovery;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.