Skip to content

Commit

Permalink
Remove Navigation::getRoute method
Browse files Browse the repository at this point in the history
Use `$item->getPage()->getRoute()` instead
  • Loading branch information
caendesilva committed Mar 24, 2024
1 parent b4011e1 commit 4c33e65
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 4c33e65

Please sign in to comment.