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 841d1bf commit b412f34Copy full SHA for b412f34
packages/framework/src/Framework/Features/Navigation/NavigationGroup.php
@@ -14,18 +14,17 @@
14
/**
15
* Abstraction for a grouped navigation menu item, like a dropdown or a sidebar group.
16
*/
17
-class NavigationGroup
+class NavigationGroup extends NavigationMenu
18
{
19
protected string $label;
20
protected int $priority;
21
22
public function __construct(string $label, array $items = [], int $priority = NavigationMenu::LAST)
23
24
- $this->items = new Collection();
25
$this->label = $label;
26
$this->priority = $priority;
27
28
- $this->add($items);
+ parent::__construct($items);
29
}
30
31
public static function create(string $label, array $items = [], int $priority = NavigationMenu::LAST): static
0 commit comments