function LocalTaskManagerInterface::getTasksBuild

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getTasksBuild()
  2. 8.9.x core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php \Drupal\Core\Menu\LocalTaskManagerInterface::getTasksBuild()
  3. 10 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 53

Class

LocalTaskManagerInterface
Manages discovery and instantiation of menu local task plugins.

Namespace

Drupal\Core\Menu

Code

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

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