class TestXSSTitleBlock
Same name in other branches
- 9 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php \Drupal\block_test\Plugin\Block\TestXSSTitleBlock
- 8.9.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php \Drupal\block_test\Plugin\Block\TestXSSTitleBlock
- 11.x 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
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Plugin\PreviewAwarePluginInterface, \Drupal\Core\Render\PreviewFallbackInterface, \Drupal\Core\Plugin\ContextAwarePluginInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\block_test\Plugin\Block\TestCacheBlock extends \Drupal\Core\Block\BlockBase
- class \Drupal\block_test\Plugin\Block\TestXSSTitleBlock extends \Drupal\block_test\Plugin\Block\TestCacheBlock
- class \Drupal\block_test\Plugin\Block\TestCacheBlock extends \Drupal\Core\Block\BlockBase
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Plugin\PreviewAwarePluginInterface, \Drupal\Core\Render\PreviewFallbackInterface, \Drupal\Core\Plugin\ContextAwarePluginInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of TestXSSTitleBlock
File
-
core/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestXSSTitleBlock.php, line 13
Namespace
Drupal\block_test\Plugin\BlockView source
class TestXSSTitleBlock extends TestCacheBlock {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.