function Block::__construct
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Block/Attribute/Block.php \Drupal\Core\Block\Attribute\Block::__construct()
- 11.1.x core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::__construct()
A block of statements.
Parameters
Stmt[] $stmts Statements:
array<string, mixed> $attributes Additional attributes:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Block.php, line 17
Class
Namespace
PhpParser\Node\StmtCode
public function __construct(array $stmts, array $attributes = []) {
$this->attributes = $attributes;
$this->stmts = $stmts;
}