Pods.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Pods\Blocks\Collections; |
| 4 | |
| 5 | /** |
| 6 | * Block collection functionality class. |
| 7 | * |
| 8 | * @since 2.8.0 |
| 9 | */ |
| 10 | class Pods extends Base { |
| 11 | |
| 12 | /** |
| 13 | * Get the name/slug of this block collection. |
| 14 | * |
| 15 | * @since 2.8.0 |
| 16 | * |
| 17 | * @return string |
| 18 | */ |
| 19 | public function slug() { |
| 20 | return 'pods'; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Get block collection configuration to register with Pods. |
| 25 | * |
| 26 | * @since 2.8.0 |
| 27 | * |
| 28 | * @return array Block collection configuration. |
| 29 | */ |
| 30 | public function block_collection() { |
| 31 | return [ |
| 32 | 'internal' => true, |
| 33 | 'label' => __( 'Pods Blocks', 'pods' ), |
| 34 | 'namespace' => $this->slug(), |
| 35 | 'icon' => 'pods', |
| 36 | ]; |
| 37 | } |
| 38 | } |
| 39 |