function ContextualLinkManager::getDiscovery
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/ContextualLinkManager.php \Drupal\Core\Menu\ContextualLinkManager::getDiscovery()
- 10 core/lib/Drupal/Core/Menu/ContextualLinkManager.php \Drupal\Core\Menu\ContextualLinkManager::getDiscovery()
- 11.x core/lib/Drupal/Core/Menu/ContextualLinkManager.php \Drupal\Core\Menu\ContextualLinkManager::getDiscovery()
Overrides DefaultPluginManager::getDiscovery
File
-
core/
lib/ Drupal/ Core/ Menu/ ContextualLinkManager.php, line 114
Class
- ContextualLinkManager
- Defines a contextual link plugin manager to deal with contextual links.
Namespace
Drupal\Core\MenuCode
protected function getDiscovery() {
if (!isset($this->discovery)) {
$yaml_discovery = new YamlDiscovery('links.contextual', $this->moduleHandler
->getModuleDirectories());
$yaml_discovery->addTranslatableProperty('title', 'title_context');
$this->discovery = new ContainerDerivativeDiscoveryDecorator($yaml_discovery);
}
return $this->discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.