You are here

public function TestTaskWithUserInput::getTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput::getTitle()

@inheritDoc

Overrides LocalTaskDefault::getTitle

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php, line 18
Contains \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput.

Class

TestTaskWithUserInput

Namespace

Drupal\menu_test\Plugin\Menu\LocalTask

Code

public function getTitle(Request $request = NULL) {
  return "<script>alert('Welcome to the jungle!')</script>";
}