1 | <?php |
||
23 | class BackendLayoutProvider implements DataProviderInterface |
||
24 | { |
||
25 | /** |
||
26 | * Layout information. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected static $backendLayoutInformation = []; |
||
31 | |||
32 | /** |
||
33 | * Add one backend layout information. |
||
34 | */ |
||
35 | public static function addBackendLayoutInformation(array $backendLayout): void |
||
39 | |||
40 | /** |
||
41 | * Adds backend layouts to the given backend layout collection. |
||
42 | */ |
||
43 | public function addBackendLayouts(DataProviderContext $dataProviderContext, BackendLayoutCollection $backendLayoutCollection): void |
||
49 | |||
50 | /** |
||
51 | * Gets a backend layout by (regular) identifier. |
||
52 | * |
||
53 | * @param string $identifier |
||
54 | * @param int $pageId |
||
55 | * |
||
56 | * @return BackendLayout|null |
||
57 | */ |
||
58 | public function getBackendLayout($identifier, $pageId) |
||
66 | |||
67 | /** |
||
68 | * Create a backend layout with the given information. |
||
69 | * |
||
70 | * @param $info |
||
71 | * |
||
72 | * @return mixed |
||
73 | */ |
||
74 | protected function createBackendLayout($info) |
||
84 | |||
85 | /** |
||
86 | * Get identifier. |
||
87 | * |
||
88 | * @param $info |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | protected function getIdentifier($info) |
||
96 | } |
||
97 |