@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | 'property' => 'title', // or any field in your media entity |
| 120 | 120 | 'label' => 'admin.page.relatedPage.label', |
| 121 | 121 | 'btn_add' => false, |
| 122 | - 'to_string_callback' => function ($entity) { |
|
| 122 | + 'to_string_callback' => function($entity) { |
|
| 123 | 123 | return $entity->getTitle(); |
| 124 | 124 | }, |
| 125 | 125 | ]); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | 'help_html' => true, |
| 183 | 183 | 'help' => 'admin.page.translations.help', |
| 184 | 184 | 'btn_add' => false, |
| 185 | - 'to_string_callback' => function ($entity) { |
|
| 185 | + 'to_string_callback' => function($entity) { |
|
| 186 | 186 | return $entity->getLocale() |
| 187 | 187 | ? $entity->getLocale().' ('.$entity->getSlug().')' |
| 188 | 188 | : $entity->getSlug(); // switch for getLocale |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $formMapper->with('i18n', ['class' => 'col-md-6']) |
| 49 | 49 | ->add('names', null, [ |
| 50 | 50 | 'required' => false, |
| 51 | - 'help_html' => true, 'help' => 'admin.media.names.help', |
|
| 51 | + 'help_html' => true, 'help' => 'admin.media.names.help', |
|
| 52 | 52 | 'label' => 'admin.media.names.label', |
| 53 | 53 | 'attr' => ['ismedia' => 1, 'class' => 'col-md-6'], |
| 54 | 54 | ]) |