1 | <?php |
||
17 | class TestBlock extends Block |
||
18 | { |
||
19 | |||
20 | const BLOCK_TYPE = 'test-block'; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * EventsList constructor. |
||
25 | * |
||
26 | * @param CoreBlocksAssetManager $block_asset_manager |
||
27 | */ |
||
28 | public function __construct(CoreBlocksAssetManager $block_asset_manager) |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Perform any early setup required by the block |
||
36 | * including setting the block type and supported post types |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function initialize() |
||
47 | |||
48 | |||
49 | /** |
||
50 | * returns the rendered HTML for the block |
||
51 | * |
||
52 | * @param array $attributes |
||
53 | * @return string |
||
54 | * @throws \EE_Error |
||
55 | * @throws \EventEspresso\core\exceptions\InvalidDataTypeException |
||
56 | * @throws \EventEspresso\core\exceptions\InvalidInterfaceException |
||
57 | * @throws \InvalidArgumentException |
||
58 | */ |
||
59 | public function renderBlock(array $attributes = array()) |
||
63 | } |