class TestTasksSettingsSub1
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
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1
- 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1
Defines a local task plugin with a dynamic title.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Menu\LocalTaskDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalTaskInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\menu_test\Plugin\Menu\LocalTask\TestTasksSettingsSub1 extends \Drupal\Core\Menu\LocalTaskDefault uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Menu\LocalTaskDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalTaskInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
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 14
Namespace
Drupal\menu_test\Plugin\Menu\LocalTaskView 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',
];
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.