From 09ae1b2225846e93ceb3debd1282656d48d21d53 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 24 Mar 2024 16:22:46 +0100 Subject: [PATCH] Remove `Navigation::getRoute` method Use `$item->getPage()->getRoute()` instead --- .../Framework/Features/Navigation/NavigationItem.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php index ea8febd647a..ff72167d305 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavigationItem.php +++ b/packages/framework/src/Framework/Features/Navigation/NavigationItem.php @@ -92,16 +92,6 @@ public function getPage(): ?HydePage return $this->destination->getRoute()?->getPage(); } - /** - * Get the destination route of the navigation item. For dropdowns, this will return null. - * - * @deprecated To simplify the class, we may remove this as we probably don't need it. - */ - public function getRoute(): ?Route - { - return $this->destination->getRoute(); - } - /** * Resolve the destination link of the navigation item. *