function TestTasksSettingsSub1::getTitle

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1::getTitle()
  2. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1::getTitle()
  3. 10 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\LocalTask

Code

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.