@@ -142,10 +142,10 @@ discard block |
||
| 142 | 142 | 'required' => false, |
| 143 | 143 | 'multiple' => true, |
| 144 | 144 | 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'), |
| 145 | - 'property' => 'question', // or any field in your media entity |
|
| 145 | + 'property' => 'question', // or any field in your media entity |
|
| 146 | 146 | 'label' => 'admin.page.faq.label', |
| 147 | 147 | 'btn_add' => true, |
| 148 | - 'to_string_callback' => function ($entity) {//, $property) { |
|
| 148 | + 'to_string_callback' => function($entity) {//, $property) { |
|
| 149 | 149 | return $entity->getQuestion(); |
| 150 | 150 | }, |
| 151 | 151 | ]); |
@@ -157,10 +157,10 @@ discard block |
||
| 157 | 157 | 'required' => false, |
| 158 | 158 | 'multiple' => true, |
| 159 | 159 | 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), |
| 160 | - 'property' => 'title', // or any field in your media entity |
|
| 160 | + 'property' => 'title', // or any field in your media entity |
|
| 161 | 161 | 'label' => 'admin.page.relatedPage.label', |
| 162 | 162 | 'btn_add' => false, |
| 163 | - 'to_string_callback' => function ($entity) { //, $property) { |
|
| 163 | + 'to_string_callback' => function($entity) { //, $property) { |
|
| 164 | 164 | return $entity->getTitle(); |
| 165 | 165 | }, |
| 166 | 166 | ]); |