@@ -146,10 +146,10 @@ discard block |
||
| 146 | 146 | 'required' => false, |
| 147 | 147 | 'multiple' => true, |
| 148 | 148 | 'class' => $this->getConfigurationPool()->getContainer()->getParameter('app.entity_faq'), |
| 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 | ]); |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | $real = $request->getRequestUri(); |
| 49 | 49 | |
| 50 | 50 | $expected = 'homepage' == $page->getSlug() ? |
| 51 | - $this->get('piedweb.page_canonical')->generatePathForHomepage() : |
|
| 52 | - $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug()) |
|
| 51 | + $this->get('piedweb.page_canonical')->generatePathForHomepage() : $this->get('piedweb.page_canonical')->generatePathForPage($page->getRealSlug()) |
|
| 53 | 52 | ; |
| 54 | 53 | |
| 55 | 54 | if ($real != $expected) { |