You are here

TestXSSTitleBlock.php in Drupal 9

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

Namesort descending Description
TestXSSTitleBlock Provides a block to test XSS in title.