Admin/BaseBlockEntityAdmin.php 1 location
|
@@ 28-35 (lines=8) @@
|
| 25 |
|
$container = $this->getConfigurationPool()->getContainer(); |
| 26 |
|
|
| 27 |
|
$realLocales = []; |
| 28 |
|
if ($container->hasParameter('lunetics_locale.allowed_locales')) { |
| 29 |
|
$locales = $container->getParameter('lunetics_locale.allowed_locales'); |
| 30 |
|
foreach ($locales as $val) { |
| 31 |
|
$realLocales[$val] = $val; |
| 32 |
|
} |
| 33 |
|
} else { |
| 34 |
|
$realLocales['fr'] = 'fr'; |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
$formMapper |
| 38 |
|
->add('content', 'ckeditor', [ |
Admin/BaseNodeEntityAdmin.php 1 location
|
@@ 16-23 (lines=8) @@
|
| 13 |
|
$container = $this->getConfigurationPool()->getContainer(); |
| 14 |
|
|
| 15 |
|
$realLocales = []; |
| 16 |
|
if($container->hasParameter('lunetics_locale.allowed_locales')) { |
| 17 |
|
$locales = $container->getParameter('lunetics_locale.allowed_locales'); |
| 18 |
|
foreach ($locales as $val) { |
| 19 |
|
$realLocales[$val] = $val; |
| 20 |
|
} |
| 21 |
|
} else { |
| 22 |
|
$realLocales['fr'] = 'fr'; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
$formMapper |
| 26 |
|
->add('title', null, [ |