function 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\MenuCode
public function getTasksBuild($current_route_name, RefinableCacheableDependencyInterface &$cacheability);