mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Add a getPageInfo method to PagesRequest class per request
This commit is contained in:
@@ -403,6 +403,25 @@ class PagesRequest extends Wire {
|
|||||||
|
|
||||||
return $page;
|
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
|
* Update/get page for given user
|
||||||
|
Reference in New Issue
Block a user