class TestLocalAction5
Same name in other branches
- 9 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5
- 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5
Defines a local action plugin with a dynamic title from user input.
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\TestLocalAction5 extends \Drupal\Core\Menu\LocalActionDefault
- 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 TestLocalAction5
1 string reference to 'TestLocalAction5'
- 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/ TestLocalAction5.php, line 13
Namespace
Drupal\menu_test\Plugin\Menu\LocalActionView source
class TestLocalAction5 extends LocalActionDefault {
/**
* {@inheritdoc}
*/
public function getTitle(?Request $request = NULL) {
return "<script>alert('Welcome to the jungle!')</script>";
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.