Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
28 | public function __construct(TranslatorInterface $translator, $defaultGroup, array $groups) |
||
29 | { |
||
30 | $translatedGroups = []; |
||
31 | foreach ($groups as $groupIdentifier) { |
||
32 | $translatedGroups[$groupIdentifier] = $translator->trans($groupIdentifier, [], 'ezplatform_fields_groups'); |
||
33 | } |
||
34 | $this->groups = $translatedGroups; |
||
35 | $this->defaultGroup = $defaultGroup; |
||
36 | $this->translator = $translator; |
||
37 | } |
||
38 | |||
49 |