You are here

public function LocalActionDefault::getTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::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.

Overrides LocalActionInterface::getTitle

See also

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

3 methods override LocalActionDefault::getTitle()
TestLocalAction4::getTitle in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php
Returns the localized title to be shown for this action.
TestLocalAction5::getTitle in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php
Returns the localized title to be shown for this action.
TestLocalAction::getTitle in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php
Returns the localized title to be shown for this action.

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 72
Contains \Drupal\Core\Menu\LocalActionDefault.

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

Code

public function getTitle(Request $request = NULL) {

  // Subclasses may pull in the request or specific attributes as parameters.
  // The title from YAML file discovery may be a TranslatableMarkup object.
  return (string) $this->pluginDefinition['title'];
}