diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 9e868506daa..18fd270e216 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -10,7 +10,7 @@ This serves two purposes: 2. At release time, you can move the Unreleased section changes into a new release version section. ### Added -- for new features. +- Add experimental InMemoryPage::getOutputPath overload support ### Changed - for changes in existing functionality. diff --git a/packages/framework/src/Pages/InMemoryPage.php b/packages/framework/src/Pages/InMemoryPage.php index 541e9356ec9..56a429344e2 100644 --- a/packages/framework/src/Pages/InMemoryPage.php +++ b/packages/framework/src/Pages/InMemoryPage.php @@ -82,6 +82,16 @@ public function getBladeView(): string return $this->view; } + /** @experimental Get the path to the output file for the page. */ + public function getOutputPath(): string + { + if ($this->hasMacro('getOutputPath')) { + return $this->__call('getOutputPath', []); + } + + return parent::getOutputPath(); + } + /** * Get the contents that will be saved to disk for this page. *