File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,18 +51,17 @@ public function setUserEditViewTemplateParameters(PreContentViewEvent $event): v
5151
5252 /**
5353 * If the event's view has a defined template, sets the view's template identifier,
54- * and the 'pagelayout ' parameter.
54+ * and the 'page_layout ' parameter.
5555 */
5656 public function setViewTemplates (PreContentViewEvent $ event ): void
5757 {
5858 $ view = $ event ->getContentView ();
59- $ pagelayout = $ this ->configResolver ->getParameter ('pagelayout ' );
59+ $ pageLayout = $ this ->configResolver ->getParameter ('page_layout ' );
6060
6161 foreach ($ this ->getTemplatesMap () as $ viewClass => $ template ) {
6262 if ($ view instanceof $ viewClass ) {
6363 $ view ->setTemplateIdentifier ($ template );
64- $ view ->addParameters (['pagelayout ' => $ pagelayout ]);
65- $ view ->addParameters (['page_layout ' => $ pagelayout ]);
64+ $ view ->addParameters (['page_layout ' => $ pageLayout ]);
6665 }
6766 }
6867 }
You can’t perform that action at this time.
0 commit comments