class TestTasksSettingsSub1

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

Hierarchy

Expanded class hierarchy of TestTasksSettingsSub1

2 string references to 'TestTasksSettingsSub1'
menu_test.links.task.yml in core/modules/system/tests/modules/menu_test/menu_test.links.task.yml
core/modules/system/tests/modules/menu_test/menu_test.links.task.yml
TestTasksSettingsSub1::getTitle in core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php, line 9

Namespace

Drupal\menu_test\Plugin\Menu\LocalTask
View source
class TestTasksSettingsSub1 extends LocalTaskDefault {
  use StringTranslationTrait;
  
  /**
   * {@inheritdoc}
   */
  public function getTitle(Request $request = NULL) {
    return $this->t('Dynamic title for @class', [
      '@class' => 'TestTasksSettingsSub1',
    ]);
  }
  
  /**
   * {@inheritdoc}
   */
  public function getCacheTags() {
    return [
      'kittens:ragdoll',
    ];
  }

}

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