function TestLocalAction::getTitle

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction::getTitle()
  2. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction::getTitle()
  3. 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction::getTitle()

Overrides LocalActionDefault::getTitle

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction.php, line 16

Class

TestLocalAction
Defines a test local action plugin class.

Namespace

Drupal\menu_test\Plugin\Menu\LocalAction

Code

public function getTitle(?Request $request = NULL) {
    return 'Title override';
}

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