public function BlockParserBlock::__construct in Gutenberg 8.2
Constructor.
Will populate object properties from the provided arguments.
@since 3.8.0
Parameters
string $name: Name of block.
array $attrs: Optional set of attributes from block comment delimiters.
array $inner_blocks: List of inner blocks (of this same class).
string $inner_html: Resultant HTML from inside block comment delimiters after removing inner blocks.
array $inner_content: List of string fragments and null markers where inner blocks were found.
File
- src/
Parser/ BlockParserBlock.php, line 89
Class
- BlockParserBlock
- Class BlockParserBlock.
Namespace
Drupal\gutenberg\ParserCode
public function __construct($name, array $attrs, array $inner_blocks, $inner_html, array $inner_content) {
$this->blockName = $name;
$this->attrs = $attrs;
$this->innerBlocks = $inner_blocks;
$this->innerHTML = $inner_html;
$this->innerContent = $inner_content;
}