public function LocalTaskManagerInterface::getLocalTasks in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getLocalTasks()
Renders the local tasks (tabs) for the given route.
Parameters
string $route_name: The route for which to make renderable local tasks.
int $level: The level of tasks you ask for. Primary tasks are 0, secondary are 1.
Return value
array An array containing
- tabs: Local tasks render array for the requested level.
- route_name: The route name for the current page used to collect the local tasks.
See also
1 method overrides LocalTaskManagerInterface::getLocalTasks()
- LocalTaskManager::getLocalTasks in core/
lib/ Drupal/ Core/ Menu/ LocalTaskManager.php - Renders the local tasks (tabs) for the given route.
File
- core/
lib/ Drupal/ Core/ Menu/ LocalTaskManagerInterface.php, line 71
Class
- LocalTaskManagerInterface
- Manages discovery and instantiation of menu local task plugins.
Namespace
Drupal\Core\MenuCode
public function getLocalTasks($route_name, $level = 0);