You are here

public function LocalActionDefault::getTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getTitle()
  2. 9 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getTitle()
4 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.
TestLocalActionWithConfig::getTitle in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalActionWithConfig.php
Returns the localized title to be shown for this action.

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 69

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'];
}