public function onMainMenuBuild(MenuBuilderEvent $event): void
    {
        if (!$this->authorizationChecker->isGranted('ROLE_NGBM_ADMIN')) {
            return;
        }

        $this->addLayoutsSubMenu($event->getMenu());
    }
public function onMainMenuBuild(MenuBuilderEvent $event): void
    {
        if (!$this->authorizationChecker->isGranted('ROLE_NGBM_ADMIN')) {
            return;
        }

        $this->addLayoutsSubMenu($event->getMenu());
    }
public function onMainMenuBuild ( MenuBuilderEvent $ event ) : void { if ( ! $ this -> authorizationChecker -> isGranted ( 'ROLE_NGBM_ADMIN' ) ) { return ; } $ this -> addLayoutsSubMenu ( $ event -> getMenu ( ) ) ; }
This method adds Netgen Layouts menu items to Sylius admin interface.
This method adds Netgen Layouts menu items to Sylius admin interface .