public function LocalTaskManager::getTitle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::getTitle()
Gets the title for a local task.
Parameters
\Drupal\Core\Menu\LocalTaskInterface $local_task: A local task plugin instance to get the title for.
Return value
string The localized title.
Overrides LocalTaskManagerInterface::getTitle
1 call to LocalTaskManager::getTitle()
- LocalTaskManager::getTasksBuild in core/
lib/ Drupal/ Core/ Menu/ LocalTaskManager.php - Gets the render array for all local tasks.
File
- core/
lib/ Drupal/ Core/ Menu/ LocalTaskManager.php, line 175 - Contains \Drupal\Core\Menu\LocalTaskManager.
Class
- LocalTaskManager
- Provides the default local task manager using YML as primary definition.
Namespace
Drupal\Core\MenuCode
public function getTitle(LocalTaskInterface $local_task) {
$controller = array(
$local_task,
'getTitle',
);
$request = $this->requestStack
->getCurrentRequest();
$arguments = $this->controllerResolver
->getArguments($request, $controller);
return call_user_func_array($controller, $arguments);
}