Свойство | Type | Description | |
---|---|---|---|
$enabledPlugins | Elcodi\Component\Plugin\Entity\Plugin[] | Plugins configuration | |
$menuNodeFactory | Elcodi\Component\Menu\Factory\NodeFactory | Menu node factory |
Méthode | Description | |
---|---|---|
__construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, array $enabledPlugins ) | Constructor | |
build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu ) | Build the menu |
Méthode | Description | |
---|---|---|
filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[] | Return only visible plugins |
Méthode | Description | |
---|---|---|
buildByPluginCategory ( Elcodi\Component\Menu\Entity\Menu\Interfaces\NodeInterface $parentNode, array $plugins, string $pluginCategory ) | Build by category and place all menu entries inside a family |
public __construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, array $enabledPlugins ) | ||
$menuNodeFactory | Elcodi\Component\Menu\Factory\NodeFactory | Menu node factory |
$enabledPlugins | array | Enabled Plugins |
public build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu ) | ||
$menu | Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface | Menu |
protected filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[] | ||
Résultat | Elcodi\Component\Plugin\Entity\Plugin[] | Visible plugins |