BlockContainerInterface.php
5 days ago
BlockInterface.php
5 days ago
BlockTemplateInterface.php
5 days ago
ContainerInterface.php
5 days ago
BlockInterface.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * WooCommerce Block Templates block interface compatibility shim. |
| 5 | */ |
| 6 | |
| 7 | namespace Automattic\WooCommerce\Admin\BlockTemplates; |
| 8 | |
| 9 | /** |
| 10 | * Removed block templates block interface. |
| 11 | * |
| 12 | * @deprecated 10.9.0 Block template extension APIs were deprecated. The block templates API was removed in 11.0.0 with no replacement. |
| 13 | */ |
| 14 | interface BlockInterface { |
| 15 | /** |
| 16 | * Key for the block name in the block configuration. |
| 17 | */ |
| 18 | public const NAME_KEY = 'blockName'; |
| 19 | |
| 20 | /** |
| 21 | * Key for the block ID in the block configuration. |
| 22 | */ |
| 23 | public const ID_KEY = 'id'; |
| 24 | |
| 25 | /** |
| 26 | * Key for the internal order in the block configuration. |
| 27 | */ |
| 28 | public const ORDER_KEY = 'order'; |
| 29 | |
| 30 | /** |
| 31 | * Key for the block attributes in the block configuration. |
| 32 | */ |
| 33 | public const ATTRIBUTES_KEY = 'attributes'; |
| 34 | |
| 35 | /** |
| 36 | * Key for the block hide conditions in the block configuration. |
| 37 | */ |
| 38 | public const HIDE_CONDITIONS_KEY = 'hideConditions'; |
| 39 | |
| 40 | /** |
| 41 | * Key for the block disable conditions in the block configuration. |
| 42 | */ |
| 43 | public const DISABLE_CONDITIONS_KEY = 'disableConditions'; |
| 44 | } |
| 45 |