TestXSSTitleBlock.php
Same filename in other branches
Namespace
Drupal\block_test\Plugin\BlockFile
-
core/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestXSSTitleBlock.php
View source
<?php
declare (strict_types=1);
namespace Drupal\block_test\Plugin\Block;
/**
* Provides a block to test XSS in title.
*
* @Block(
* id = "test_xss_title",
* admin_label = "<script>alert('XSS subject');</script>"
* )
*/
class TestXSSTitleBlock extends TestCacheBlock {
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestXSSTitleBlock | Provides a block to test XSS in title. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.