You are here

TestLocalAction5.php in Zircon Profile 8.0

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalAction/TestLocalAction5.php
View source
<?php

/**
 * @file
 * Contains \Drupal\menu_test\Plugin\Menu\LocalAction\TestLocalAction5.
 */
namespace Drupal\menu_test\Plugin\Menu\LocalAction;

use Drupal\Core\Menu\LocalActionDefault;

/**
 * Defines a local action plugin with a dynamic title from user input.
 */
class TestLocalAction5 extends LocalActionDefault {

  /**
   * {@inheritdoc}
   */
  public function getTitle() {
    return "<script>alert('Welcome to the jungle!')</script>";
  }

}

Classes

Namesort descending Description
TestLocalAction5 Defines a local action plugin with a dynamic title from user input.