class LocalActionTest
Same name in this branch
- 10 core/modules/system/tests/src/Functional/Menu/LocalActionTest.php \Drupal\Tests\system\Functional\Menu\LocalActionTest
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Menu/LocalActionTest.php \Drupal\Tests\system\Functional\Menu\LocalActionTest
- 9 core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalActionTest.php \Drupal\menu_test\Plugin\Derivative\LocalActionTest
- 8.9.x core/modules/system/tests/src/Functional/Menu/LocalActionTest.php \Drupal\Tests\system\Functional\Menu\LocalActionTest
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalActionTest.php \Drupal\menu_test\Plugin\Derivative\LocalActionTest
- 11.x core/modules/system/tests/src/Functional/Menu/LocalActionTest.php \Drupal\Tests\system\Functional\Menu\LocalActionTest
- 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalActionTest.php \Drupal\menu_test\Plugin\Derivative\LocalActionTest
Test derivative to check local action title escaping.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements \Drupal\Component\Plugin\Derivative\DeriverInterface
- class \Drupal\menu_test\Plugin\Derivative\LocalActionTest extends \Drupal\Component\Plugin\Derivative\DeriverBase
Expanded class hierarchy of LocalActionTest
See also
\Drupal\system\Tests\Menu\LocalActionTest
1 string reference to 'LocalActionTest'
- 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/ Derivative/ LocalActionTest.php, line 12
Namespace
Drupal\menu_test\Plugin\DerivativeView source
class LocalActionTest extends DeriverBase {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$this->derivatives['example'] = $base_plugin_definition + [
'title' => "<script>alert('Welcome to the derived jungle!')</script>",
];
return $this->derivatives;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
DeriverBase::$derivatives | protected | property | List of derivative definitions. | 1 | |
DeriverBase::getDerivativeDefinition | public | function | Gets the definition of a derivative plugin. | Overrides DeriverInterface::getDerivativeDefinition | |
LocalActionTest::getDerivativeDefinitions | public | function | Gets the definition of all derivatives of a base plugin. | Overrides DeriverBase::getDerivativeDefinitions |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.