function DefaultPluginManager::getDiscovery
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Plugin/DefaultPluginManager.php \Drupal\Core\Plugin\DefaultPluginManager::getDiscovery()
1 method overrides DefaultPluginManager::getDiscovery()
- ConfigMapperManager::getDiscovery in core/
modules/ config_translation/ src/ ConfigMapperManager.php - Gets the plugin discovery.
File
-
core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php, line 266
Class
- DefaultPluginManager
- Base class for plugin managers.
Namespace
Drupal\Core\PluginCode
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.