@@ -146,10 +146,10 @@ discard block |
||
146 | 146 | 'required' => false, |
147 | 147 | 'multiple' => true, |
148 | 148 | 'class' => Faq::class, |
149 | - 'property' => 'question', // or any field in your media entity |
|
149 | + 'property' => 'question', // or any field in your media entity |
|
150 | 150 | 'label' => 'admin.page.faq.label', |
151 | 151 | 'btn_add' => true, |
152 | - 'to_string_callback' => function ($entity, $property) { |
|
152 | + 'to_string_callback' => function($entity, $property) { |
|
153 | 153 | return $entity->getQuestion(); |
154 | 154 | }, |
155 | 155 | ]); |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | 'required' => false, |
162 | 162 | 'multiple' => true, |
163 | 163 | 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_page'), |
164 | - 'property' => 'title', // or any field in your media entity |
|
164 | + 'property' => 'title', // or any field in your media entity |
|
165 | 165 | 'label' => 'admin.page.relatedPage.label', |
166 | 166 | 'btn_add' => false, |
167 | - 'to_string_callback' => function ($entity) { //, $property) { |
|
167 | + 'to_string_callback' => function($entity) { //, $property) { |
|
168 | 168 | return $entity->getTitle(); |
169 | 169 | }, |
170 | 170 | ]); |