| Total Complexity | 1 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | final class ExampleBlock extends Block |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * The block's display name. |
||
| 10 | * |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $name = 'Example'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The block's description. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $description = 'This is an example block'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The block's template. |
||
| 24 | * |
||
| 25 | * @var string|string[] |
||
| 26 | */ |
||
| 27 | protected $template = 'partials/blocks/example.php'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Fields to be attached to the block. |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function fields(): array |
||
| 43 |