PageArray::findOnePage()
Same as findOne() but always returns a Page or NullPage rather than false when not found.
Prefer this over findOne() when you want a consistent Page|NullPage return type, matching the behavior of $pages->findOne() and $pages->get() at the database layer.
Available since version 3.0.162.
Usage
$page = $pageArray->findOnePage(string $selector);Arguments
See Also
PageArray methods and properties
API reference based on ProcessWire core version 3.0.269