Returns the depth of the open blocks where the processor is currently matched.
Description
Depth increases before visiting openers and void blocks and decreases before visiting closers. HTML spans behave like void blocks.
Source
public function get_depth(): int {
return count( $this->open_blocks_at );
}
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.