Skip to content

Commit c494c01

Browse files
peterjaapJeroenBoersma
authored andcommitted
Add pageArguments
1 parent d198445 commit c494c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Renderer/Page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ public function redirectUid(string $uid): ResultInterface
116116
return $resultRedirect;
117117
}
118118

119-
private function createPage(\stdClass $document): ResultInterface
119+
public function createPage(\stdClass $document, $pageArguments = []): ResultInterface
120120
{
121121
$this->currentDocument->setDocument($document);
122122

123-
$page = $this->pageFactory->create();
123+
$page = $this->pageFactory->create(false, $pageArguments);
124124
$page->addHandle([
125125
'prismicio_default',
126126
'prismicio_by_type_' . $document->type,

0 commit comments

Comments
 (0)