Get info for given page and version
Example
// get info for version 2
$info = $pagesVersions->getPageVersionInfo($page, 2);
if($info) {
echo "Version: $info->version <br />";
echo "Created: $info->createdStr by {$info->createdUser->name} <br />";
echo "Description: $info->descriptionHtml";
} else {
echo "Version does not exist";
}
Usage
$pageVersionInfo = $pagesVersions->getPageVersionInfo(Page $page, int $version);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
version | int |
Return value
PageVersionInfo
null
$pagesVersions methods and properties
API reference based on ProcessWire core version 3.0.236