diff --git a/src/lib/EventListener/ViewTemplatesListener.php b/src/lib/EventListener/ViewTemplatesListener.php index 29750a8..8cc9e8f 100644 --- a/src/lib/EventListener/ViewTemplatesListener.php +++ b/src/lib/EventListener/ViewTemplatesListener.php @@ -51,18 +51,17 @@ public function setUserEditViewTemplateParameters(PreContentViewEvent $event): v /** * If the event's view has a defined template, sets the view's template identifier, - * and the 'pagelayout' parameter. + * and the 'page_layout' parameter. */ public function setViewTemplates(PreContentViewEvent $event): void { $view = $event->getContentView(); - $pagelayout = $this->configResolver->getParameter('pagelayout'); + $pageLayout = $this->configResolver->getParameter('page_layout'); foreach ($this->getTemplatesMap() as $viewClass => $template) { if ($view instanceof $viewClass) { $view->setTemplateIdentifier($template); - $view->addParameters(['pagelayout' => $pagelayout]); - $view->addParameters(['page_layout' => $pagelayout]); + $view->addParameters(['page_layout' => $pageLayout]); } } }