public function LocalActionManager::getTitle in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/LocalActionManager.php \Drupal\Core\Menu\LocalActionManager::getTitle()
Gets the title for a local action.
Parameters
\Drupal\Core\Menu\LocalActionInterface $local_action: An object to get the title from.
Return value
string The title (already localized).
Throws
\BadMethodCallException If the plugin does not implement the getTitle() method.
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 155 - Contains \Drupal\Core\Menu\LocalActionManager.
Class
- LocalActionManager
- Provides the default local action manager using YML as primary definition.
Namespace
Drupal\Core\MenuCode
public function getTitle(LocalActionInterface $local_action) {
$controller = array(
$local_action,
'getTitle',
);
$arguments = $this->controllerResolver
->getArguments($this->requestStack
->getCurrentRequest(), $controller);
return call_user_func_array($controller, $arguments);
}