Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function configureFormFields(FormMapper $formMapper) |
||
37 | { |
||
38 | $localsRequiredService = $this->getConfigurationPool()->getContainer()->get('application_default.sonata.locales.required'); |
||
39 | $localOptions = $localsRequiredService->getLocalsRequiredArray(); |
||
40 | $formMapper |
||
41 | ->with('Переводы') |
||
42 | ->add( |
||
43 | 'translations', |
||
44 | 'a2lix_translations_gedmo', |
||
45 | [ |
||
46 | 'translatable_class' => $this->getClass(), |
||
47 | 'label' => 'Переводы', |
||
48 | 'fields' => [ |
||
49 | 'name' => [ |
||
50 | 'label' => 'Название', |
||
51 | 'locale_options' => $localOptions, |
||
52 | ], |
||
53 | ], |
||
54 | ] |
||
55 | ) |
||
56 | ->end() |
||
57 | ->with('Общие') |
||
58 | ->add('isWideContainer', null, ['required' => false, 'label' => 'Главная категория (широкий контейнер)']) |
||
59 | ->add('sortOrder', null, ['label' => 'Номер сортировки']) |
||
60 | ->end(); |
||
61 | } |
||
63 |