public function LocalTaskManagerInterface::getTasksBuild

public LocalTaskManagerInterface::getTasksBuild($current_route_name, RefinableCacheableDependencyInterface &$cacheability)

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.

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!LocalTaskManagerInterface.php/function/LocalTaskManagerInterface::getTasksBuild/8.1.x