protected LocalTaskManager::getDiscovery()
Gets the plugin discovery.
Return value
\Drupal\Component\Plugin\Discovery\DiscoveryInterface
Overrides DefaultPluginManager::getDiscovery
File
- core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 147
Class
- LocalTaskManager
- Provides the default local task manager using YML as primary definition.
Namespace
Drupal\Core\Menu
Code
1 2 3 4 5 6 7 8 | protected function getDiscovery() { if (!isset( $this ->discovery)) { $yaml_discovery = new YamlDiscovery( 'links.task' , $this ->moduleHandler->getModuleDirectories()); $yaml_discovery ->addTranslatableProperty( 'title' , 'title_context' ); $this ->discovery = new ContainerDerivativeDiscoveryDecorator( $yaml_discovery ); } return $this ->discovery; } |
Please login to continue.