We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e10b6 commit 7ad9e49Copy full SHA for 7ad9e49
packages/framework/src/Framework/Features/Navigation/NavItem.php
@@ -161,4 +161,16 @@ protected static function normalizeGroupKey(?string $group): ?string
161
{
162
return $group ? Str::slug($group) : null;
163
}
164
+
165
+ protected function searchForDropdownPriorityInNavigationConfig(string $groupKey): ?int
166
+ {
167
+ /** @var array<string, int> $config */
168
+ $config = Config::getArray('hyde.navigation.order', [
169
+ 'index' => 0,
170
+ 'posts' => 10,
171
+ 'docs/index' => 100,
172
+ ]);
173
174
+ return $config[$groupKey] ?? null;
175
+ }
176
0 commit comments