@@ -138,6 +138,10 @@ discard block |
||
138 | 138 | ]; |
139 | 139 | } |
140 | 140 | |
141 | + /** |
|
142 | + * @param string $entityClass |
|
143 | + * @param string $adminName |
|
144 | + */ |
|
141 | 145 | private function addDefaultFields(array &$configuration, $entityClass, $adminName) |
142 | 146 | { |
143 | 147 | $fieldsMapping = [ |
@@ -343,7 +347,7 @@ discard block |
||
343 | 347 | /** |
344 | 348 | * Return the default action field if found. |
345 | 349 | * |
346 | - * @param array $fields |
|
350 | + * @param string[] $fields |
|
347 | 351 | * |
348 | 352 | * @return string|null |
349 | 353 | */ |
@@ -420,6 +424,9 @@ discard block |
||
420 | 424 | return $metadata; |
421 | 425 | } |
422 | 426 | |
427 | + /** |
|
428 | + * @param string $type |
|
429 | + */ |
|
423 | 430 | private function getOperatorFromFieldType($type) |
424 | 431 | { |
425 | 432 | $mapping = [ |
@@ -172,7 +172,7 @@ |
||
172 | 172 | /** |
173 | 173 | * @param array $configuration |
174 | 174 | * @param ActionConfiguration $actionConfiguration |
175 | - * @return array |
|
175 | + * @return string |
|
176 | 176 | * @throws Exception |
177 | 177 | */ |
178 | 178 | private function resolveTopLevelConfiguration(array $configuration, ActionConfiguration $actionConfiguration) |
@@ -2,7 +2,6 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace LAG\AdminBundle\Bridge\Twig\Extension; |
4 | 4 | |
5 | -use LAG\AdminBundle\Admin\AdminInterface; |
|
6 | 5 | use LAG\AdminBundle\Configuration\ApplicationConfiguration; |
7 | 6 | use LAG\AdminBundle\Configuration\ApplicationConfigurationStorage; |
8 | 7 | use LAG\AdminBundle\Configuration\MenuItemConfiguration; |
@@ -11,7 +10,6 @@ discard block |
||
11 | 10 | use LAG\AdminBundle\Factory\MenuFactory; |
12 | 11 | use LAG\AdminBundle\Field\EntityAwareFieldInterface; |
13 | 12 | use LAG\AdminBundle\Field\FieldInterface; |
14 | -use LAG\AdminBundle\Field\TranslatorAwareFieldInterface; |
|
15 | 13 | use LAG\AdminBundle\Routing\RoutingLoader; |
16 | 14 | use LAG\AdminBundle\Utils\StringUtils; |
17 | 15 | use LAG\AdminBundle\View\ViewInterface; |