mirror of
https://github.com/getgrav/grav.git
synced 2026-05-09 04:36:02 +02:00
Add getter methods for original and action to the Page object. (#2005)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user