From 1ed674b7f55c77b5d4591ab1f0a094688c566f96 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 24 Mar 2024 17:02:58 +0100 Subject: [PATCH] Reorder methods in class --- .../Features/Navigation/NavigationItem.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php index 6c8d73ad3f5..c0d65bd58df 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php +++ b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php @@ -82,14 +82,6 @@ public function __toString(): string return $this->getLink(); } - /** - * If the navigation item is a link to a routed page, get the corresponding page instance. - */ - public function getPage(): ?HydePage - { - return $this->destination instanceof Route ? $this->destination->getPage() : null; - } - /** * Resolve the destination link of the navigation item. */ @@ -127,6 +119,14 @@ public function getGroupKey(): ?string return $this->group; } + /** + * If the navigation item is a link to a routed page, get the corresponding page instance. + */ + public function getPage(): ?HydePage + { + return $this->destination instanceof Route ? $this->destination->getPage() : null; + } + /** * Check if the NavigationItem instance is the current page being rendered. */