class Block
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Block.php \PhpParser\Node\Stmt\Block
- 11.1.x core/lib/Drupal/Core/Block/Annotation/Block.php \Drupal\Core\Block\Annotation\Block
- 11.1.x core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block
- 11.1.x core/modules/block/src/Plugin/migrate/source/Block.php \Drupal\block\Plugin\migrate\source\Block
- 11.1.x core/modules/block/src/Entity/Block.php \Drupal\block\Entity\Block
The Block attribute.
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
Expanded class hierarchy of Block
27 files declare their use of Block
- BlockContentBlock.php in core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php - BlockManager.php in core/
lib/ Drupal/ Core/ Block/ BlockManager.php - Broken.php in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - ExtraFieldBlock.php in core/
modules/ layout_builder/ src/ Plugin/ Block/ ExtraFieldBlock.php - FieldBlock.php in core/
modules/ layout_builder/ src/ Plugin/ Block/ FieldBlock.php
81 string references to 'Block'
- big_pipe_theme_suggestions_big_pipe_interface_preview in core/
modules/ big_pipe/ big_pipe.module - Implements hook_theme_suggestions_HOOK().
- block.info.yml in core/
modules/ block/ block.info.yml - core/modules/block/block.info.yml
- block.links.contextual.yml in core/
modules/ block/ block.links.contextual.yml - core/modules/block/block.links.contextual.yml
- block.migrate_drupal.yml in core/
modules/ block/ migrations/ state/ block.migrate_drupal.yml - core/modules/block/migrations/state/block.migrate_drupal.yml
- block.schema.yml in core/
modules/ block/ config/ schema/ block.schema.yml - core/modules/block/config/schema/block.schema.yml
File
-
core/
lib/ Drupal/ Core/ Block/ Attribute/ Block.php, line 11
Namespace
Drupal\Core\Block\AttributeView source
class Block extends Plugin {
/**
* Constructs a Block attribute.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $admin_label
* The administrative label of the block.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $category
* (optional) The category in the admin UI where the block will be listed.
* @param \Drupal\Core\Plugin\Context\ContextDefinitionInterface[] $context_definitions
* (optional) An array of context definitions describing the context used by
* the plugin. The array is keyed by context names.
* @param class-string|null $deriver
* (optional) The deriver class.
* @param array<string, string|false> $forms
* (optional) An array of form class names or FALSE, keyed by a string.
*/
public function __construct(string $id, ?TranslatableMarkup $admin_label = NULL, ?TranslatableMarkup $category = NULL, array $context_definitions = [], ?string $deriver = NULL, array $forms = []) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Gets the value of an attribute. | Overrides AttributeInterface::get | 6 |
AttributeBase::getClass | public | function | Gets the class of the attribute class. | Overrides AttributeInterface::getClass | 1 |
AttributeBase::getId | public | function | Gets the unique ID for this attribute class. | Overrides AttributeInterface::getId | |
AttributeBase::getProvider | public | function | Gets the name of the provider of the attribute class. | Overrides AttributeInterface::getProvider | |
AttributeBase::setClass | public | function | Sets the class of the attributed class. | Overrides AttributeInterface::setClass | 1 |
AttributeBase::setProvider | public | function | Sets the name of the provider of the attribute class. | Overrides AttributeInterface::setProvider | |
Block::__construct | public | function | Constructs a Block attribute. | Overrides Plugin::__construct |