menu('Nginx') // add Submenu for select templates ->addLineBreak('-') ->addSubMenu('Add', $nginxTemplateHelper->addSelectTemplateItem()); $builder->addLineBreak('-'); // apperance $builder = StylesFactory::setMenuStyles($builder); $mainmenu = $builder->build(); // remove first item $items = $mainmenu->getItems(); unset($items[0]); $mainmenu->setItems($items); // adding current vhosts $mainmenu = NginxVhostFactory::addVhosts($mainmenu, NginxVhost::find(), self::VHOST_INDEX); $mainmenu->open(); } }