Extracts the block name from the block metadata path.
Parameters
$block_metadataarrayrequired- Block metadata.
Source
private static function get_block_name_from_metadata_path( $block_metadata ) {
return $block_metadata['path'][2] ?? null;
}
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.