Skip to content

Commit

Permalink
Add experimental InMemoryPage::getOutputPath overload support
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 13, 2023
1 parent feb99e9 commit 697e016
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions packages/framework/src/Pages/InMemoryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 697e016

Please sign in to comment.