File "GroupInterface.php"
Full path: /home/sbkuplnl/public_html/wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/ProductTemplates/GroupInterface.php
File
size: 0.73 KB (747 B bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
namespace Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates;
use Automattic\WooCommerce\Admin\BlockTemplates\BlockContainerInterface;
use Automattic\WooCommerce\Admin\BlockTemplates\BlockInterface;
/**
* Interface for group containers, which contain sections and blocks.
*/
interface GroupInterface extends BlockContainerInterface {
/**
* Adds a new section to the group
*
* @param array $block_config block config.
* @return SectionInterface new block section.
*/
public function add_section( array $block_config ): SectionInterface;
/**
* Adds a new block to the group.
*
* @param array $block_config block config.
*/
public function add_block( array $block_config ): BlockInterface;
}