class Block
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Block/Annotation/Block.php \Drupal\Core\Block\Annotation\Block
- 11.1.x core/lib/Drupal/Core/Block/Attribute/Block.php \Drupal\Core\Block\Attribute\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
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of Block
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
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Block.php, line 7
Namespace
PhpParser\Node\StmtView source
class Block extends Stmt {
/** @var Stmt[] Statements */
public array $stmts;
/**
* A block of statements.
*
* @param Stmt[] $stmts Statements
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $stmts, array $attributes = []) {
$this->attributes = $attributes;
$this->stmts = $stmts;
}
public function getType() : string {
return 'Stmt_Block';
}
public function getSubNodeNames() : array {
return [
'stmts',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Block::$stmts | public | property | @var Stmt[] Statements |
Block::getSubNodeNames | public | function | |
Block::getType | public | function | |
Block::__construct | public | function | A block of statements. |