The Serialized_Blocks
interface describes an object containing blocks that can be serialized to block markup. Any string can be serialized to block markup via the Block_Content
class.
interface Serialized_Blocks {
public function serialized_blocks(): string;
}
- Blocks: Bundle many blocks.
- Each_Appended: Append other block content to each matched block.
- Each_Replaced: Replace each matched block with other block content.
- Matched_Blocks: Blocks matched with
match_blocks()
. - Block_Content: Blocks in the given content.
- Lazy_Blocks: Instantiate blocks only when called upon.
All Single_Block
implementations also implement Serialized_Blocks
.