Get the version number of given page or 0 if not versioned
Usage
// basic usage
$int = $pagesVersions->pageVersionNumber(Page $page);
// usage with all arguments
$int = $pagesVersions->pageVersionNumber(Page $page, $version = 0);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | |
version (optional) |
Return value
int
$pagesVersions methods and properties
API reference based on ProcessWire core version 3.0.236