Commit bff26642 authored by Georg Ringer's avatar Georg Ringer Committed by Oliver Hader
Browse files

[BUGFIX] Initialize more properties of PageLayoutView

With #78450 the StandardContentPreviewRenderer creates an instance of
the  `PageLayoutView` to keep the existing hooks alive.
However 2 more properties need to be filled to improve the

Resolves: #90528
Releases: master

Change-Id: I0c56988bdc9d524f1cfa411ae0c62d00ad1789dd

Reviewed-by: Claus Due's avatarClaus Due <>
Reviewed-by: Susanne Moog's avatarSusanne Moog <>
Reviewed-by: default avatarChristian Eßl <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Oliver Hader's avatarOliver Hader <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: Susanne Moog's avatarSusanne Moog <>
Tested-by: Oliver Hader's avatarOliver Hader <>
parent 6fa665dc
......@@ -419,6 +419,8 @@ class StandardContentPreviewRenderer implements PreviewRendererInterface, Logger
protected function createEmulatedPageLayoutViewFromDrawingConfiguration(DrawingConfiguration $drawingConfiguration): PageLayoutView
$pageLayoutView = GeneralUtility::makeInstance(PageLayoutView::class);
$pageLayoutView->id = $drawingConfiguration->getPageId();
$pageLayoutView->pageRecord = $drawingConfiguration->getPageRecord();
$pageLayoutView->option_newWizard = $drawingConfiguration->getShowNewContentWizard();
$pageLayoutView->defLangBinding = $drawingConfiguration->getDefaultLanguageBinding();
$pageLayoutView->tt_contentConfig['cols'] = implode(',', $drawingConfiguration->getActiveColumns());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment