You are here

public function LocalTaskManagerInterface::getTasksBuild in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getTasksBuild()

Gets the render array for all local tasks.

Parameters

string $current_route_name: The route for which to make renderable local tasks.

\Drupal\Core\Cache\RefinableCacheableDependencyInterface $cacheability: The cacheability metadata for the local tasks.

Return value

array A render array as expected by menu-local-tasks.html.twig.

1 method overrides LocalTaskManagerInterface::getTasksBuild()
LocalTaskManager::getTasksBuild in core/lib/Drupal/Core/Menu/LocalTaskManager.php
Gets the render array for all local tasks.

File

core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php, line 57
Contains \Drupal\Core\Menu\LocalTaskManagerInterface.

Class

LocalTaskManagerInterface
Manages discovery and instantiation of menu local task plugins.

Namespace

Drupal\Core\Menu

Code

public function getTasksBuild($current_route_name, RefinableCacheableDependencyInterface &$cacheability);