function LocalActionDefault::getTitle
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getTitle()
- 8.9.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getTitle()
- 11.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getTitle()
Overrides LocalActionInterface::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\MenuCode
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'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.