function LocalActionInterface::getTitle

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

Returns the localized title to be shown for this action.

Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver.

Return value

string The title to be shown for this action.

See also

\Drupal\Core\Menu\LocalActionManager::getTitle()

1 method overrides LocalActionInterface::getTitle()
LocalActionDefault::getTitle in core/lib/Drupal/Core/Menu/LocalActionDefault.php
Returns the localized title to be shown for this action.

File

core/lib/Drupal/Core/Menu/LocalActionInterface.php, line 60

Class

LocalActionInterface
Defines an interface for menu local actions.

Namespace

Drupal\Core\Menu

Code

public function getTitle();

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