GroupInterface.php
1 month ago
ProductFormTemplateInterface.php
1 month ago
SectionInterface.php
1 month ago
SubsectionInterface.php
1 month ago
SectionInterface.php
40 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 | /** |
| 10 | * Interface for section containers, which contain sub-sections and blocks. |
| 11 | * |
| 12 | * @deprecated 10.9.0 Product editor extension APIs will be removed in WooCommerce 11.0. |
| 13 | */ |
| 14 | interface SectionInterface extends BlockContainerInterface { |
| 15 | |
| 16 | /** |
| 17 | * Adds a new sub-section to the section. |
| 18 | * |
| 19 | * @param array $block_config block config. |
| 20 | * @return SubsectionInterface new block sub-section. |
| 21 | */ |
| 22 | public function add_subsection( array $block_config ): SubsectionInterface; |
| 23 | |
| 24 | /** |
| 25 | * Adds a new block to the section. |
| 26 | * |
| 27 | * @param array $block_config block config. |
| 28 | */ |
| 29 | public function add_block( array $block_config ): BlockInterface; |
| 30 | |
| 31 | /** |
| 32 | * Adds a new sub-section to the section. |
| 33 | * |
| 34 | * @deprecated 8.6.0 |
| 35 | * |
| 36 | * @param array $block_config The block data. |
| 37 | */ |
| 38 | public function add_section( array $block_config ): SubsectionInterface; |
| 39 | } |
| 40 |