Get page information about a given path
Returned array includes the following:
id
(int): ID of page for given pathlanguage_id
(int): ID of language path was for, or 0 for default languagetemplates_id
(int): ID of template used by pageparent_id
(int): ID of parent pagestatus
(int): Status value for page ($page->status)path
(string): Path that was found
Available since version 3.0.186.
Usage
$array = $pagePaths->getPageInfo(string $path);
Arguments
Name | Type(s) | Description |
---|---|---|
path | string |
Return value
array
bool
Returns info array on success, boolean false if not found
PagePaths methods and properties
API reference based on ProcessWire core version 3.0.244