function TestLocalAction4::getTitle
Same name in other branches
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4::getTitle()
- 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4::getTitle()
- 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4::getTitle()
Overrides LocalActionDefault::getTitle
File
-
core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalAction/ TestLocalAction4.php, line 19
Class
- TestLocalAction4
- Defines a local action plugin with a dynamic title.
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionCode
public function getTitle(Request $request = NULL) {
return $this->t('My @arg action', [
'@arg' => 'dynamic-title',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.