You are here

LocalActionTest.php in Zircon Profile 8.0

File

core/modules/system/tests/modules/menu_test/src/Plugin/Derivative/LocalActionTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\menu_test\Plugin\Derivative\LocalActionTest.
 */
namespace Drupal\menu_test\Plugin\Derivative;

use Drupal\Component\Plugin\Derivative\DeriverBase;

/**
 * Test derivative to check local action title escaping.
 *
 * @see \Drupal\system\Tests\Menu\LocalActionTest
 */
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;
  }

}

Classes

Namesort descending Description
LocalActionTest Test derivative to check local action title escaping.