Add remove_block and remove_blocks to ContainerInterface

This commit is contained in:
Matt Sherman 2023-08-24 21:35:29 -04:00
parent de49e2d83b
commit ec9f7d186e
1 changed files with 14 additions and 0 deletions

View File

@ -15,4 +15,18 @@ interface ContainerInterface {
* Get the block configuration as a formatted template.
*/
public function get_formatted_template(): array;
/**
* Removes a block from the container.
*
* @param string $block_id The block ID.
*
* @throws \UnexpectedValueException If the block container is not an ancestor of the block.
*/
public function remove_block( string $block_id );
/**
* Removes all blocks from the container.
*/
public function remove_blocks();
}