Populates object properties from the provided block instance argument. The given array of context values will not necessarily be available on the instance itself, but is treated as the full set of values provided by the block's ancestry. This is assigned to the private available_context property. Only values which are configured to consumed by the block via its registered type will be assigned to the block's context property.
Parameters
$blockarray
An associative array of a single parsed block object. See WP_Block_Parser_Block.
$blockNamestring|null
Name of block.
$attrsarray
Attributes from block comment delimiters.
$innerBlocksarray
List of inner blocks. An array of arrays that have the same structure as this one.
$innerHTMLstring
HTML from inside block comment delimiters.
$innerContentarray
List of string fragments and null markers where inner blocks were found.
$available_contextarrayoptional
Optional array of ancestry context values.Default: array()
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/class-wp-block.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.