1171publicfunctionget_breadcrumbs():array{1172$breadcrumbs=array_fill(0,count($this->open_blocks_at),null);11731174/*1175 * Since HTML spans can only be at the very end, set the normalized block name for1176 * each open element and then work backwards after creating the array. This allows1177 * for the elimination of a conditional on each iteration of the loop.1178 */1179foreach($this->open_blocks_atas$i=>$at){1180$block_type=substr($this->source_text,$at,$this->open_blocks_length[$i]);1181$breadcrumbs[$i]=self::normalize_block_type($block_type);1182}11831184if(isset($i)&&0===$this->open_blocks_length[$i]){1185$breadcrumbs[$i]='#html';1186}11871188return$breadcrumbs;1189}
History
Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-block-processor.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.