1 | <?php |
||
25 | class ObjectPayloadsController extends AbstractController |
||
26 | { |
||
27 | /** |
||
28 | * The template base path |
||
29 | */ |
||
30 | const TEMPLATE_BASE = parent::TEMPLATE_BASE . '/objects'; |
||
31 | |||
32 | /** |
||
33 | * The index view template path |
||
34 | */ |
||
35 | const TEMPLATE_INDEX = self::TEMPLATE_BASE . '/payload'; |
||
36 | |||
37 | /** |
||
38 | * @param int $field |
||
39 | * @param int $element |
||
40 | * @return Response |
||
41 | * @throws HttpException |
||
42 | */ |
||
43 | public function actionIndex(int $field, int $element): Response |
||
80 | |||
81 | /** |
||
82 | * @return array |
||
83 | */ |
||
84 | private function getPayloadTypes(): array |
||
91 | |||
92 | /** |
||
93 | * @param Objects $field |
||
94 | * @param ElementInterface $element |
||
95 | * @param string $action |
||
96 | * @return array |
||
97 | */ |
||
98 | protected function getPayload( |
||
125 | |||
126 | |||
127 | /** |
||
128 | * @return array |
||
129 | */ |
||
130 | private function getTabs(): array |
||
143 | |||
144 | /******************************************* |
||
145 | * BASE PATHS |
||
146 | *******************************************/ |
||
147 | |||
148 | /** |
||
149 | * @return string |
||
150 | */ |
||
151 | protected function getBaseCpPath(): string |
||
155 | |||
156 | /** |
||
157 | * @return string |
||
158 | */ |
||
159 | protected function getBaseActionPath(): string |
||
163 | |||
164 | |||
165 | /******************************************* |
||
166 | * VARIABLES |
||
167 | *******************************************/ |
||
168 | |||
169 | /** |
||
170 | * @inheritdoc |
||
171 | */ |
||
172 | protected function baseVariables(array &$variables = []) |
||
185 | } |
||
186 |