public function TestTaskWithUserInput::getTitle in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput::getTitle()
- 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput::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.
Overrides LocalTaskDefault::getTitle
File
- core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalTask/ TestTaskWithUserInput.php, line 13
Class
Namespace
Drupal\menu_test\Plugin\Menu\LocalTaskCode
public function getTitle(Request $request = NULL) {
return "<script>alert('Welcome to the jungle!')</script>";
}