1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00

Add a getPageInfo method to PagesRequest class per request

This commit is contained in:
Ryan Cramer
2024-07-19 12:45:30 -04:00
parent 5b0e37e3ae
commit bda807a574

View File

@@ -403,6 +403,25 @@ class PagesRequest extends Wire {
return $page;
}
/**
* Get array of page info (as provided by PagePathFinder)
*
* See the PagesPathFinder::get() method return value for a description of
* what this method returns.
*
* If this method returns a blank array, it means that the getPage()
* method has not yet been called or that it did not match a page.
*
* #pw-advanced
*
* @return array
* @since 3.0.242
*
*/
public function getPageInfo() {
return $this->pageInfo;
}
/**
* Update/get page for given user