class LocalActionTest in Zircon Profile 8.0
Same name in this branch
- 8.0 core/modules/system/src/Tests/Menu/LocalActionTest.php \Drupal\system\Tests\Menu\LocalActionTest
- 8.0 core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalActionTest.php \Drupal\menu_test\Plugin\Derivative\LocalActionTest
Same name and namespace in other branches
- 8 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 DeriverInterface
- class \Drupal\menu_test\Plugin\Derivative\LocalActionTest
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 17 - Contains \Drupal\menu_test\Plugin\Derivative\LocalActionTest.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
LocalActionTest:: |
public | function |
@inheritDoc Overrides DeriverBase:: |