function LocalTaskInterface::getTitle

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

Returns the localized title to be shown for this tab.

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

Return value

string The title of the local task.

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

File

core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 35

Class

LocalTaskInterface
Defines an interface for menu local tasks.

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.