Skip to content

Commit 3ed0453

Browse files
committed
Revert "Merge helper method into new code location"
This reverts commit b330ff5.
1 parent b330ff5 commit 3ed0453

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,10 @@ protected function usesGroups(): bool
9696

9797
return $this->routes->first(fn (Route $route): bool => filled($route->getPage()->navigationMenuGroup())) !== null;
9898
} else {
99-
return Config::getString('hyde.navigation.subdirectories', 'hidden') === 'dropdown' || $this->hasGroupExplicitlySetInFrontMatter();
99+
return Config::getString('hyde.navigation.subdirectories', 'hidden') === 'dropdown';
100100
}
101101
}
102102

103-
private function hasGroupExplicitlySetInFrontMatter(): bool
104-
{
105-
return $this->routes->contains(function (Route $item): bool {
106-
return ($item->getPage()->navigationMenuGroup() !== null) && (! $item->getPage() instanceof DocumentationPage);
107-
});
108-
}
109-
110103
protected function canAddRoute(Route $route): bool
111104
{
112105
if (! $route->getPage()->showInNavigation()) {

0 commit comments

Comments
 (0)