From ab58cca3f7d7a077a951ee0c4fa1602e075b0d17 Mon Sep 17 00:00:00 2001 From: Hydraner Date: Fri, 8 Jun 2018 23:37:44 +0200 Subject: [PATCH] Add getter methods for original and action to the Page object. (#2005) --- system/src/Grav/Common/Page/Page.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index a4027a514..e92e03bff 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -2955,4 +2955,26 @@ class Page return $route; } } + + /** + * Gets the Page Unmodified (original) version of the page. + * + * @return Page + * The original version of the page. + */ + public function getOriginal() + { + return $this->_original; + } + + /** + * Gets the action. + * + * @return string + * The Action string. + */ + public function getAction() + { + return $this->_action; + } }