class MenuLinkTestWithUnsafeTitle
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/MenuLinkTestWithUnsafeTitle.php \Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle
- 10 core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/MenuLinkTestWithUnsafeTitle.php \Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle
- 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/MenuLinkTestWithUnsafeTitle.php \Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle
Test derivative with an unsafe string.
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements \Drupal\Component\Plugin\Derivative\DeriverInterface
- class \Drupal\menu_test\Plugin\Derivative\MenuLinkTestWithUnsafeTitle extends \Drupal\Component\Plugin\Derivative\DeriverBase
Expanded class hierarchy of MenuLinkTestWithUnsafeTitle
1 string reference to 'MenuLinkTestWithUnsafeTitle'
- menu_test.links.menu.yml in core/
modules/ system/ tests/ modules/ menu_test/ menu_test.links.menu.yml - core/modules/system/tests/modules/menu_test/menu_test.links.menu.yml
File
-
core/
modules/ system/ tests/ modules/ menu_test/ src/ Plugin/ Derivative/ MenuLinkTestWithUnsafeTitle.php, line 10
Namespace
Drupal\menu_test\Plugin\DerivativeView source
class MenuLinkTestWithUnsafeTitle extends DeriverBase {
/**
* {@inheritdoc}
*/
public function getDerivativeDefinitions($base_plugin_definition) {
$this->derivatives['unsafe'] = [
'title' => '<script>alert("Even more wild animals")</script>',
'menu_name' => 'tools',
] + $base_plugin_definition;
return $this->derivatives;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.