class TestLocalAction4
Same name in other branches
- 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4
- 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction4.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4
Defines a local action plugin with a dynamic title.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Menu\LocalActionDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction4 extends \Drupal\Core\Menu\LocalActionDefault uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Menu\LocalActionDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
Expanded class hierarchy of TestLocalAction4
1 string reference to 'TestLocalAction4'
- menu_test.links.action.yml in core/
modules/ system/ tests/ modules/ menu_test/ menu_test.links.action.yml - core/modules/system/tests/modules/menu_test/menu_test.links.action.yml
File
-
core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Menu/ LocalAction/ TestLocalAction4.php, line 14
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionView source
class TestLocalAction4 extends LocalActionDefault {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function getTitle(?Request $request = NULL) {
return $this->t('My @arg action', [
'@arg' => 'dynamic-title',
]);
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.