public function onMenuConfigure(ConfigureMenuEvent $event)
    {
        if ($this->permissionResolver->hasAccess('uisites', 'read')) {
            $menu = $event->getMenu();

            $menu->addChild(self::ITEM_SITES, []);
        }
    }
public function onMenuConfigure(ConfigureMenuEvent $event)
    {
        if ($this->permissionResolver->hasAccess('uisites', 'read')) {
            $menu = $event->getMenu();

            $menu->addChild(self::ITEM_SITES, []);
        }
    }
public function onMenuConfigure ( ConfigureMenuEvent $ event ) { if ( $ this -> permissionResolver -> hasAccess ( 'uisites' , 'read' ) ) { $ menu = $ event -> getMenu ( ) ; $ menu -> addChild ( self :: ITEM_SITES , [ ] ) ; } }
Add Sites entry menu.

@param ConfigureMenuEvent $event
Add Sites entry menu .