TestXSSTitleBlock.php

Same filename in other branches
  1. 8.9.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php
  2. 10 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php
  3. 11.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php

Namespace

Drupal\block_test\Plugin\Block

File

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

View source
<?php

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.