function LocalActionManager::getTitle

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::getTitle()
  2. 10 core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::getTitle()
  3. 11.x core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::getTitle()

Overrides LocalActionManagerInterface::getTitle

1 call to LocalActionManager::getTitle()
LocalActionManager::getActionsForRoute in core/lib/Drupal/Core/Menu/LocalActionManager.php
Finds all local actions that appear on a named route.

File

core/lib/Drupal/Core/Menu/LocalActionManager.php, line 151

Class

LocalActionManager
Provides the default local action manager using YML as primary definition.

Namespace

Drupal\Core\Menu

Code

public function getTitle(LocalActionInterface $local_action) {
    $controller = [
        $local_action,
        'getTitle',
    ];
    $arguments = $this->argumentResolver
        ->getArguments($this->requestStack
        ->getCurrentRequest(), $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.