3 namespace Drupal\menu_test\Plugin\Derivative;
5 use Drupal\Component\Plugin\Derivative\DeriverBase;
8 * Test derivative to check local action title escaping.
10 * @see \Drupal\system\Tests\Menu\LocalActionTest
12 class LocalActionTest extends DeriverBase {
17 public function getDerivativeDefinitions($base_plugin_definition) {
18 $this->derivatives['example'] = $base_plugin_definition + [
19 'title' => "<script>alert('Welcome to the derived jungle!')</script>",
22 return $this->derivatives;