Indicates if the matched delimiter is an HTML span.
Description
See also
Return
bool Whether the processor is matched on an HTML span.Source
public function is_html(): bool {
return self::HTML_SPAN === $this->state;
}
Related
| Used by | Description |
|---|---|
WP_Block_Processor::get_html_content()wp-includes/class-wp-block-processor.php | Returns the string content of a matched HTML span, or |
WP_Block_Processor::get_block_type()wp-includes/class-wp-block-processor.php | Allocates a substring for the block type and returns the fully-qualified name, including the namespace, if matched on a delimiter, otherwise |
WP_Block_Processor::get_printable_block_type()wp-includes/class-wp-block-processor.php | Allocates a printable substring for the block type and returns the fully-qualified name, including the namespace, if matched on a delimiter or freeform block, otherwise |
WP_Block_Processor::allocate_and_return_parsed_attributes()wp-includes/class-wp-block-processor.php | Attempts to parse and return the entire JSON attributes from the delimiter, allocating memory and processing the JSON span in the process. |
WP_Block_Processor::next_delimiter()wp-includes/class-wp-block-processor.php | Advance to the next block delimiter in a document, indicating if one was found. |
WP_Block_Processor::extract_full_block_and_advance()wp-includes/class-wp-block-processor.php | Extracts a block object, and all inner content, starting at a matched opening block delimiter, or at a matched top-level HTML span as freeform HTML content. |
WP_Block_Processor::is_block_type()wp-includes/class-wp-block-processor.php | Indicates if the block delimiter represents a block of the given type. |
WP_Block_Processor::opens_block()wp-includes/class-wp-block-processor.php | Indicates if the matched delimiter is an opening or void delimiter of the given type, if a type is provided, otherwise if it opens any block or implicit freeform HTML content. |
WP_Block_Processor::is_non_whitespace_html()wp-includes/class-wp-block-processor.php | Indicates if the matched delimiter is an HTML span and comprises more than whitespace characters, i.e. contains real content. |
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.