class CustomBlockBlock

Defines a generic custom block type.

Plugin annotation


@Plugin(
 id = "custom_block",
 admin_label = @Translation("Custom block"),
 module = "custom_block",
 derivative = "Drupal\custom_block\Plugin\Derivative\CustomBlock"
)

Hierarchy

Expanded class hierarchy of CustomBlockBlock

File

drupal/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php, line 24
Contains \Drupal\custom_block\Plugin\Block\CustomBlockBlock.

Namespace

Drupal\custom_block\Plugin\Block
View source

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::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
CustomBlockBlock::blockForm public function Overrides \Drupal\block\BlockBase::blockForm(). Overrides BlockBase::blockForm
CustomBlockBlock::blockSubmit public function Overrides \Drupal\block\BlockBase::blockSubmit(). Overrides BlockBase::blockSubmit
CustomBlockBlock::build public function Builds and returns the renderable array for this block plugin. Overrides BlockPluginInterface::build
CustomBlockBlock::settings public function Overrides \Drupal\block\BlockBase::settings(). Overrides BlockBase::settings
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