function LocalTaskManager::getTitle

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::getTitle()
  2. 8.9.x core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::getTitle()
  3. 11.x core/lib/Drupal/Core/Menu/LocalTaskManager.php \Drupal\Core\Menu\LocalTaskManager::getTitle()
1 call to LocalTaskManager::getTitle()
LocalTaskManager::getTasksBuild in core/lib/Drupal/Core/Menu/LocalTaskManager.php

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 = [
        $local_task,
        'getTitle',
    ];
    $request = $this->requestStack
        ->getCurrentRequest();
    $arguments = $this->argumentResolver
        ->getArguments($request, $controller);
    return call_user_func_array($controller, $arguments);
}

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