class TestXSSTitleBlock

Same name in other branches
  1. 9 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php \Drupal\block_test\Plugin\Block\TestXSSTitleBlock
  2. 8.9.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php \Drupal\block_test\Plugin\Block\TestXSSTitleBlock
  3. 10 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php \Drupal\block_test\Plugin\Block\TestXSSTitleBlock

Provides a block to test XSS in title.

Plugin annotation


@Block(
  id = "test_xss_title",
  admin_label = "<script>alert('XSS subject');</script>"
)

Hierarchy

Expanded class hierarchy of TestXSSTitleBlock

File

core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php, line 15

Namespace

Drupal\block_test\Plugin\Block
View source
class TestXSSTitleBlock extends TestCacheBlock {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.