PagesPathFinder::pathFinder method
Given a path, get a Page object or NullPage if not found
This method is like the get() method except that it returns a Page
object rather than an array. It sets a _pagePathFinder property to the returned Page, which is an associative array containing the same result
array returned by the get() method.
Please access this method from $pages->pathFinder()->getPage('…');
Usage
// basic usage
$nullPage = $pages->pathFinder->getPage(string $path);
// usage with all arguments
$nullPage = $pages->pathFinder->getPage(string $path, array $options = []);See Also
$pages->pathFinder methods and properties
API reference based on ProcessWire core version 3.0.252