public function TestLocalAction::getTitle in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction::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 LocalActionDefault::getTitle
See also
\Drupal\Core\Menu\LocalActionManager::getTitle()
File
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalAction/ TestLocalAction.php, line 20 - Contains \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction.
Class
- TestLocalAction
- Defines a test local action plugin class.
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionCode
public function getTitle() {
return 'Title override';
}