Skip to content

Commit

Permalink
Mark method as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 20, 2024
1 parent 564be4f commit 4aca10c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public function hasGroups(): bool
/**
* Is a page within the group the current page? This is used to determine if the sidebar group should be open when loading the page.
*
* @internal This method is used in the sidebar view to determine if a group should be open, and is not intended to be used in other contexts.
*
* For index pages, this will also return true for the first group in the menu, unless the index page has a specific group set.
*
* We have this logic here because not all NavItem instances belong to sidebars, and we need data from both.
Expand Down

0 comments on commit 4aca10c

Please sign in to comment.