Skip to content

Commit 2acb288

Browse files
committed
Add optional argument to render all blocks in complete isolation
1 parent 25425fa commit 2acb288

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Util/Controller/TargetRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ public function __construct(
1818
) {
1919
}
2020

21-
public function render(LayoutInterface $originalLayout, array $targetNames): array
21+
public function render(LayoutInterface $originalLayout, array $targetNames, bool $isolated = false): array
2222
{
2323
$handles = $this->layoutHandlerComposite->getHandles($originalLayout->getUpdate()->getHandles());
24-
$newLayout = $this->layoutLoader->load($handles);
24+
$newLayout = $this->layoutLoader->load($handles, $isolated);
2525

2626
return $this->renderBlocks($newLayout, $this->getTargetBlockNames($newLayout, $targetNames));
2727
}

0 commit comments

Comments
 (0)