PagePaths::getPageInfo()

Get page information about a given path

Returned array includes the following:

  • id (int): ID of page for given path
  • language_id (int): ID of language path was for, or 0 for default language
  • templates_id (int): ID of template used by page
  • parent_id (int): ID of parent page
  • status (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

NameType(s)Description
$pathstring

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.252