class TestHtmlIdBlock

Provides a block to test HTML IDs.

Plugin annotation


@Plugin(
  id = "test_html_id",
  admin_label = @Translation("Test block html id"),
  module = "block_test"
)

Hierarchy

Expanded class hierarchy of TestHtmlIdBlock

1 file declares its use of TestHtmlIdBlock
BlockStorageUnitTest.php in drupal/core/modules/block/lib/Drupal/block/Tests/BlockStorageUnitTest.php
Contains \Drupal\block\Tests\BlockStorageUnitTest.

File

drupal/core/modules/block/tests/lib/Drupal/block_test/Plugin/Block/TestHtmlIdBlock.php, line 23
Contains \Drupal\block_test\Plugin\Block\TestHtmlIdBlock.

Namespace

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

}

Members

Namesort descending Modifiers Type Description Overrides
BlockBase::access public function Indicates whether block-specific criteria allow access to the block. Overrides BlockPluginInterface::access 16
BlockBase::blockForm public function Returns the configuration form elements specific to this block plugin. 11
BlockBase::blockSubmit public function Adds block type-specific submission handling for the block form. 11
BlockBase::blockValidate public function Adds block type-specific validation for the block form.
BlockBase::form public function Implements \Drupal\block\BlockPluginInterface::form(). Overrides BlockPluginInterface::form 1
BlockBase::getConfig public function Returns the configuration data for the block plugin.
BlockBase::setConfig public function Sets a particular value in the block settings.
BlockBase::submit public function Implements \Drupal\block\BlockPluginInterface::submit(). Overrides BlockPluginInterface::submit
BlockBase::validate public function Implements \Drupal\block\BlockPluginInterface::validate(). Overrides BlockPluginInterface::validate
BlockBase::__construct public function Constructs a Drupal\Component\Plugin\PluginBase object. Overrides PluginBase::__construct 1
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::getPluginDefinition public function Returns the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition
PluginBase::getPluginId public function Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
TestCacheBlock::build public function Builds and returns the renderable array for this block plugin. Overrides BlockPluginInterface::build
TestCacheBlock::settings public function Overrides \Drupal\block\BlockBase::settings(). Overrides BlockBase::settings 1