diff --git a/core/lib/Drupal/Core/Annotation/Menu/LocalTask.php b/core/lib/Drupal/Core/Annotation/Menu/LocalTask.php deleted file mode 100644 index 52ef6a1..0000000 --- a/core/lib/Drupal/Core/Annotation/Menu/LocalTask.php +++ /dev/null @@ -1,70 +0,0 @@ - '', - // The static title for the local task. 'id' => '', + // The static title for the local task. + 'title' => '', + // The route name. 'route_name' => '', // The plugin ID of the root tab. 'tab_root_id' => '', @@ -41,7 +42,7 @@ class LocalTaskManager extends PluginManagerBase { // The default link options. 'options' => array(), // Default class for local task implementations. - 'class' => 'Drupal\Core\Menu\LocalTaskDefault', + 'class' => 'Drupal\Core\Menu\LocalTaskBase', ); /** @@ -85,13 +86,12 @@ class LocalTaskManager extends PluginManagerBase { * The module handler. */ public function __construct(ControllerResolverInterface $controller_resolver, Request $request, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler) { - $this->controllerResolver = $controller_resolver; $this->request = $request; $this->routeProvider = $route_provider; - // @todo caching/compiling, translations and altering. - // $this->alterInfo($module_handler, 'local_tasks'); + // @todo caching. + $this->alterInfo($module_handler, 'local_tasks'); $this->discovery = new YamlDiscovery('local_tasks', array_values($module_handler->getModuleDirectories())); $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery); $this->discovery = new ProcessDecorator($this->discovery, array($this, 'processDefinition'));