@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | ]; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param string $adminName |
|
| 122 | + */ |
|
| 120 | 123 | private function addDefaultTopMenu(array &$configuration, $adminName) |
| 121 | 124 | { |
| 122 | 125 | if (!$this->applicationConfiguration->getParameter('enable_menus')) { |
@@ -151,6 +154,10 @@ discard block |
||
| 151 | 154 | ]; |
| 152 | 155 | } |
| 153 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $entityClass |
|
| 159 | + * @param string $adminName |
|
| 160 | + */ |
|
| 154 | 161 | private function addDefaultFields(array &$configuration, $entityClass, $adminName) |
| 155 | 162 | { |
| 156 | 163 | $fieldsMapping = [ |
@@ -429,6 +436,9 @@ discard block |
||
| 429 | 436 | return $metadata; |
| 430 | 437 | } |
| 431 | 438 | |
| 439 | + /** |
|
| 440 | + * @param string $type |
|
| 441 | + */ |
|
| 432 | 442 | private function getOperatorFromFieldType($type) |
| 433 | 443 | { |
| 434 | 444 | $mapping = [ |
@@ -135,12 +135,10 @@ |
||
| 135 | 135 | |
| 136 | 136 | if (LAGAdminBundle::LOAD_STRATEGY_NONE === $strategy) { |
| 137 | 137 | return; |
| 138 | - } |
|
| 139 | - else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 138 | + } else if (LAGAdminBundle::LOAD_STRATEGY_MULTIPLE === $strategy) { |
|
| 140 | 139 | $entities = $dataProvider->getCollection($admin, $event->getFilters()); |
| 141 | 140 | $event->setEntities($entities); |
| 142 | - } |
|
| 143 | - else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 141 | + } else if (LAGAdminBundle::LOAD_STRATEGY_UNIQUE === $strategy) { |
|
| 144 | 142 | $requirements = $actionConfiguration->getParameter('route_requirements'); |
| 145 | 143 | $identifier = null; |
| 146 | 144 | |