LocalTaskManager::getTitle

public LocalTaskManager::getTitle(LocalTaskInterface $local_task)

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

File

core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 170

Class

LocalTaskManager
Provides the default local task manager using YML as primary definition.

Namespace

Drupal\Core\Menu

Code

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);
}
doc_Drupal
2016-10-29 09:24:51
Comments
Leave a Comment

Please login to continue.