Skip to content

Commit 7ad9e49

Browse files
committed
Copy legacy config resolver to new class
1 parent 98e10b6 commit 7ad9e49

File tree

1 file changed

+12
-0
lines changed
  • packages/framework/src/Framework/Features/Navigation

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,16 @@ protected static function normalizeGroupKey(?string $group): ?string
161161
{
162162
return $group ? Str::slug($group) : null;
163163
}
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+
}
164176
}

0 commit comments

Comments
 (0)