Get an array of all paths the given page has previously had, oldest to newest
For the options argument:
- Optionally specify a Language instance (or name or ID) to isolate results to a specific language.
- Optionally specify boolean true to return verbose info.
Usage
// basic usage
$array = $pagePathHistory->getPathHistory(Page $page);
// usage with all arguments
$array = $pagePathHistory->getPathHistory(Page $page, $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
page | Page | Page to retrieve paths for. |
options (optional) |
Return value
array
of paths
PagePathHistory methods and properties
API reference based on ProcessWire core version 3.0.236