@@ -55,8 +55,7 @@ |
||
55 | 55 | $defaultLocale = $this->container->getParameter('locale'); |
56 | 56 | |
57 | 57 | $expected = 'homepage' == $page->getSlug() && $defaultLocale == $request->getLocale() ? |
58 | - $this->get('router')->generate('piedweb_cms_homepage') : |
|
59 | - $this->get('router')->generate('piedweb_cms_page', ['slug' => $page->getRealSlug()]) |
|
58 | + $this->get('router')->generate('piedweb_cms_homepage') : $this->get('router')->generate('piedweb_cms_page', ['slug' => $page->getRealSlug()]) |
|
60 | 59 | ; |
61 | 60 | |
62 | 61 | if ($real != $expected) { |
@@ -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 | ]); |