PHP Class Elcodi\Admin\PluginBundle\Builder\PluginMenuBuilder

Inheritance: implements Elcodi\Component\Menu\Builder\Interfaces\MenuBuilderInterface
Afficher le fichier Open project: elcodi/bamboo

Protected Properties

Свойство Type Description
$enabledPlugins Elcodi\Component\Plugin\Entity\Plugin[] Plugins configuration
$menuNodeFactory Elcodi\Component\Menu\Factory\NodeFactory Menu node factory

Méthodes publiques

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éthodes protégées

Méthode Description
filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[] Return only visible plugins

Private Methods

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

Method Details

__construct() public méthode

Constructor
public __construct ( Elcodi\Component\Menu\Factory\NodeFactory $menuNodeFactory, array $enabledPlugins )
$menuNodeFactory Elcodi\Component\Menu\Factory\NodeFactory Menu node factory
$enabledPlugins array Enabled Plugins

build() public méthode

Build the menu
public build ( Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface $menu )
$menu Elcodi\Component\Menu\Entity\Menu\Interfaces\MenuInterface Menu

filterVisiblePlugins() protected méthode

Return only visible plugins
protected filterVisiblePlugins ( ) : Elcodi\Component\Plugin\Entity\Plugin[]
Résultat Elcodi\Component\Plugin\Entity\Plugin[] Visible plugins

Property Details

$enabledPlugins protected_oe property

Plugins configuration
protected Plugin[],Elcodi\Component\Plugin\Entity $enabledPlugins
Résultat Elcodi\Component\Plugin\Entity\Plugin[]

$menuNodeFactory protected_oe property

Menu node factory
protected NodeFactory,Elcodi\Component\Menu\Factory $menuNodeFactory
Résultat Elcodi\Component\Menu\Factory\NodeFactory