diff --git a/application/src/View/Helper/BlockLayout.php b/application/src/View/Helper/BlockLayout.php index e5a01df05..cf3189281 100644 --- a/application/src/View/Helper/BlockLayout.php +++ b/application/src/View/Helper/BlockLayout.php @@ -128,16 +128,16 @@ public function prepareRender($layout) * Return the HTML necessary to render the provided block. * * @param SitePageBlockRepresentation $block + * @param ?string $templateViewScript * @return string */ - public function render(SitePageBlockRepresentation $block) + public function render(SitePageBlockRepresentation $block, string $templateViewScript = null) { $view = $this->getView(); $blockLayout = $this->manager->get($block->layout()); // Set the configured block template, if any. $templateName = $block->layoutDataValue('template_name'); - $templateViewScript = null; if ($templateName && $blockLayout instanceof TemplateableBlockLayoutInterface) { // Verify that the current theme provides this template. $config = $this->currentTheme->getConfigSpec();