class TestLocalAction5

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5

Defines a local action plugin with a dynamic title from user input.

Hierarchy

Expanded class hierarchy of TestLocalAction5

1 string reference to 'TestLocalAction5'
menu_test.links.action.yml in core/modules/system/tests/modules/menu_test/menu_test.links.action.yml
core/modules/system/tests/modules/menu_test/menu_test.links.action.yml

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php, line 11

Namespace

Drupal\menu_test\Plugin\Menu\LocalAction
View source
class TestLocalAction5 extends LocalActionDefault {
  
  /**
   * {@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.