PageArray::getPage()
Like the base get() method but always returns a Page or NullPage rather than null/false.
Prefer this over get() when you need a consistent Page|NullPage return type, matching the behavior of $pages->get() at the database layer.
Available since version 3.0.162.
Usage
$page = $pageArray->getPage($key);Arguments
| Name | Type(s) | Description |
|---|---|---|
$key | int string array | Provide any of the following:
|
Return value
See Also
PageArray methods and properties
API reference based on ProcessWire core version 3.0.269