function LocalTaskManagerInterface::getLocalTasksForRoute

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasksForRoute()
  2. 10 core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasksForRoute()
  3. 11.x core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasksForRoute()

Find all local tasks that appear on a named route.

Parameters

string $route_name: The route for which to find local tasks.

Return value

array Returns an array of task levels. Each task level contains instances of local tasks (LocalTaskInterface) which appear on the tab route. The array keys are the depths and the values are arrays of plugin instances.

1 method overrides LocalTaskManagerInterface::getLocalTasksForRoute()
LocalTaskManager::getLocalTasksForRoute in core/lib/Drupal/Core/Menu/LocalTaskManager.php
Find all local tasks that appear on a named route.

File

core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php, line 40

Class

LocalTaskManagerInterface
Manages discovery and instantiation of menu local task plugins.

Namespace

Drupal\Core\Menu

Code

public function getLocalTasksForRoute($route_name);

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