function TestTasksSettingsSub1::getTitle
Same name in other branches
- 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1::getTitle()
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1::getTitle()
- 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1::getTitle()
Overrides LocalTaskDefault::getTitle
File
-
core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalTask/ TestTasksSettingsSub1.php, line 21
Class
- TestTasksSettingsSub1
- Defines a local task plugin with a dynamic title.
Namespace
Drupal\menu_test\Plugin\Menu\LocalTaskCode
public function getTitle(?Request $request = NULL) {
return $this->t('Dynamic title for @class', [
'@class' => 'TestTasksSettingsSub1',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.