Skip to content

Commit 1df9636

Browse files
committed
Deprecate dropdown accessors in new class
1 parent cac6d90 commit 1df9636

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,23 @@ public function getItems(): Collection
2525
return $this->items;
2626
}
2727

28+
/**
29+
* @experimental These do not seem to be used outside of tests and may be removed
30+
*
31+
* @deprecated If kept, they should be renamed to be more generic.
32+
*/
2833
public function hasDropdowns(): bool
2934
{
3035
return $this->dropdownsEnabled() && count($this->getDropdowns()) >= 1;
3136
}
3237

33-
/** @return array<string, DropdownNavItem> */
38+
/**
39+
* @experimental These do not seem to be used outside of tests and may be removed
40+
*
41+
* @deprecated If kept, they should be renamed to be more generic.
42+
*
43+
* @return array<string, DropdownNavItem>
44+
*/
3445
public function getDropdowns(): array
3546
{
3647
if (! $this->dropdownsEnabled()) {

0 commit comments

Comments
 (0)