File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
packages/framework/src/Framework/Features/Navigation Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 44
55namespace Hyde \Framework \Features \Navigation ;
66
7- use Hyde \Facades \Config ;
87use Illuminate \Support \Collection ;
98use Illuminate \Contracts \Support \Arrayable ;
109
@@ -23,33 +22,4 @@ public function getItems(): Collection
2322 {
2423 return $ this ->items ;
2524 }
26-
27- /**
28- * @experimental These do not seem to be used outside of tests and may be removed
29- *
30- * @deprecated If kept, they should be renamed to be more generic.
31- */
32- public function legacy_hasDropdowns (): bool
33- {
34- return $ this ->dropdownsEnabled () && count ($ this ->getDropdowns ()) >= 1 ;
35- }
36-
37- /**
38- * @experimental These do not seem to be used outside of tests and may be removed
39- *
40- * @deprecated If kept, they should be renamed to be more generic.
41- *
42- * @return array<string, DropdownNavItem>
43- */
44- public function legacy_getDropdowns (): array
45- {
46- return $ this ->items ->filter (function (NavItem $ item ): bool {
47- return $ item instanceof DropdownNavItem;
48- })->values ()->all ();
49- }
50-
51- protected function dropdownsEnabled (): bool
52- {
53- return Config::getString ('hyde.navigation.subdirectories ' , 'hidden ' ) === 'dropdown ' ;
54- }
5525}
You can’t perform that action at this time.
0 commit comments