Defines a generic custom block type.
@Plugin(
id = "custom_block",
admin_label = @Translation("Custom block"),
module = "custom_block",
derivative = "Drupal\custom_block\Plugin\Derivative\CustomBlock"
)
Expanded class hierarchy of CustomBlockBlock
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockBase:: |
public | function |
Indicates whether block-specific criteria allow access to the block. Overrides BlockPluginInterface:: |
16 |
BlockBase:: |
public | function | Adds block type-specific validation for the block form. | |
BlockBase:: |
public | function |
Implements \Drupal\block\BlockPluginInterface::form(). Overrides BlockPluginInterface:: |
1 |
BlockBase:: |
public | function | Returns the configuration data for the block plugin. | |
BlockBase:: |
public | function | Sets a particular value in the block settings. | |
BlockBase:: |
public | function |
Implements \Drupal\block\BlockPluginInterface::submit(). Overrides BlockPluginInterface:: |
|
BlockBase:: |
public | function |
Implements \Drupal\block\BlockPluginInterface::validate(). Overrides BlockPluginInterface:: |
|
BlockBase:: |
public | function |
Constructs a Drupal\Component\Plugin\PluginBase object. Overrides PluginBase:: |
1 |
CustomBlockBlock:: |
public | function |
Overrides \Drupal\block\BlockBase::blockForm(). Overrides BlockBase:: |
|
CustomBlockBlock:: |
public | function |
Overrides \Drupal\block\BlockBase::blockSubmit(). Overrides BlockBase:: |
|
CustomBlockBlock:: |
public | function |
Builds and returns the renderable array for this block plugin. Overrides BlockPluginInterface:: |
|
CustomBlockBlock:: |
public | function |
Overrides \Drupal\block\BlockBase::settings(). Overrides BlockBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
public | function |
Returns the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function |
Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |