TestContextualLink.php in Zircon Profile 8
Same filename and directory in other branches
File
core/modules/system/tests/modules/menu_test/src/Plugin/Menu/ContextualLink/TestContextualLink.phpView source
<?php
/**
* @file
* Contains \Drupal\menu_test\Plugin\Menu\ContextualLink\TestContextualLink.
*/
namespace Drupal\menu_test\Plugin\Menu\ContextualLink;
use Drupal\Core\Menu\ContextualLinkDefault;
/**
* Defines a contextual link plugin with a dynamic title from user input.
*/
class TestContextualLink extends ContextualLinkDefault {
/**
* {@inheritdoc}
*/
public function getTitle() {
return "<script>alert('Welcome to the jungle!')</script>";
}
}
Classes
Name | Description |
---|---|
TestContextualLink | Defines a contextual link plugin with a dynamic title from user input. |