GroupInterface.php
1 month ago
ProductFormTemplateInterface.php
1 month ago
SectionInterface.php
1 month ago
SubsectionInterface.php
1 month ago
GroupInterface.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates; |
| 4 | |
| 5 | use Automattic\WooCommerce\Admin\BlockTemplates\BlockContainerInterface; |
| 6 | use Automattic\WooCommerce\Admin\BlockTemplates\BlockInterface; |
| 7 | |
| 8 | /** |
| 9 | * Interface for group containers, which contain sections and blocks. |
| 10 | * |
| 11 | * @deprecated 10.9.0 Product editor extension APIs will be removed in WooCommerce 11.0. |
| 12 | */ |
| 13 | interface GroupInterface extends BlockContainerInterface { |
| 14 | |
| 15 | /** |
| 16 | * Adds a new section to the group |
| 17 | * |
| 18 | * @param array $block_config block config. |
| 19 | * @return SectionInterface new block section. |
| 20 | */ |
| 21 | public function add_section( array $block_config ): SectionInterface; |
| 22 | |
| 23 | /** |
| 24 | * Adds a new block to the group. |
| 25 | * |
| 26 | * @param array $block_config block config. |
| 27 | */ |
| 28 | public function add_block( array $block_config ): BlockInterface; |
| 29 | } |
| 30 |