From bda807a574fd917e0179f475f272954cc91108f5 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 19 Jul 2024 12:45:30 -0400 Subject: [PATCH] Add a getPageInfo method to PagesRequest class per request --- wire/core/PagesRequest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/wire/core/PagesRequest.php b/wire/core/PagesRequest.php index 42b8f327..019237ec 100644 --- a/wire/core/PagesRequest.php +++ b/wire/core/PagesRequest.php @@ -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