class TestTaskWithUserInput

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput
  2. 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput
  3. 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTaskWithUserInput

Hierarchy

Expanded class hierarchy of TestTaskWithUserInput

1 string reference to 'TestTaskWithUserInput'
menu_test.links.task.yml in core/modules/system/tests/modules/menu_test/menu_test.links.task.yml
core/modules/system/tests/modules/menu_test/menu_test.links.task.yml

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTaskWithUserInput.php, line 8

Namespace

Drupal\menu_test\Plugin\Menu\LocalTask
View source
class TestTaskWithUserInput extends LocalTaskDefault {
  
  /**
   * {@inheritdoc}
   */
  public function getTitle(Request $request = NULL) {
    return "<script>alert('Welcome to the jungle!')</script>";
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.