Get requested page version in a copy of given page
Example
$page = $pages->get(1234);
$pageV2 = $pagesVersions->getPageVersion($page, 2);
Usage
// basic usage
$page = $pagesVersions->getPageVersion(Page $page, int $version);
// usage with all arguments
$page = $pagesVersions->getPageVersion(Page $page, int $version, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | Page that version is for |
version | int | Version number to get |
options (optional) | array |
|
Return value
$pagesVersions methods and properties
API reference based on ProcessWire core version 3.0.236