mirror of
https://github.com/getgrav/grav.git
synced 2026-07-04 10:39:01 +02:00
Added new unsetRoute() to allow route() to rebuild
This commit is contained in:
@@ -1224,6 +1224,15 @@ class Page
|
||||
return $this->route;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to clear the route out so it regenerates next time you use it
|
||||
*/
|
||||
public function unsetRoute()
|
||||
{
|
||||
unset($this->route);
|
||||
|
||||
}
|
||||
|
||||
public function rawRoute($var = null)
|
||||
{
|
||||
if ($var !== null) {
|
||||
|
||||
Reference in New Issue
Block a user