1 | <?php |
||
18 | abstract class BlockManager |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var CollectionInterface|BlockInterface[] $blocks |
||
23 | */ |
||
24 | protected $blocks; |
||
25 | |||
26 | /** |
||
27 | * @var RequestInterface $request |
||
28 | */ |
||
29 | protected $request; |
||
30 | |||
31 | |||
32 | |||
33 | /** |
||
34 | * BlockManager constructor. |
||
35 | * |
||
36 | * @param BlockCollection $blocks |
||
37 | * @param RequestInterface $request |
||
38 | */ |
||
39 | public function __construct( |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Returns the name of a hookpoint to be used to call initialize() |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | abstract public function initHook(); |
||
55 | |||
56 | |||
57 | /** |
||
58 | * Perform any early setup required for block editors to functions |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | abstract public function initialize(); |
||
63 | } |
||
64 |