PHP 8.2.31
Preview: ContainerInterface.php Size: 862 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Admin/BlockTemplates/ContainerInterface.php

<?php

namespace Automattic\WooCommerce\Admin\BlockTemplates;

/**
 * Interface for block containers.
 */
interface ContainerInterface {
	/**
	 * Get the root template that the block belongs to.
	 */
	public function &get_root_template(): BlockTemplateInterface;

	/**
	 * Get the block configuration as a formatted template.
	 */
	public function get_formatted_template(): array;

	/**
	 * Get a block by ID.
	 *
	 * @param string $block_id The block ID.
	 */
	public function get_block( string $block_id ): ?BlockInterface;

	/**
	 * 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();
}

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
186 B lrw-r--r-- 2023-08-30 01:45:24
Edit Download
4.08 KB lrw-r--r-- 2024-03-26 16:56:02
Edit Download
808 B lrw-r--r-- 2024-01-30 23:24:56
Edit Download
862 B lrw-r--r-- 2023-09-26 21:42:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).