PagesVersions::loadPageVersion() method
Load and populate version data to given page
This is similar to the getPageVersion()
method except that it populates
the given $page
rather than populating and returning a cloned copy of it.
Usage
// basic usage
$bool = $pagesVersions->loadPageVersion(Page $page, $version);
// usage with all arguments
$bool = $pagesVersions->loadPageVersion(Page $page, $version, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$page | Page | |
$version | int string PageVersionInfo | |
$options (optional) | array |
|
Return value
bool
True if version data was available and populated, false if not
$pagesVersions methods and properties
API reference based on ProcessWire core version 3.0.251