Menu/AdmingeneratorMenuBuilder.php
protected function addHeader(ItemInterface $menu, $label)
    {
        $item = $menu->addChild($label);
        $item->setAttribute('class', 'dropdown-header');
        $item->setExtra('translation_domain', $this->translation_domain);

        return $item;
    }
protected function addHeader(ItemInterface $menu, $label)
    {
        $item = $menu->addChild($label);
        $item->setAttribute('class', 'dropdown-header');
        $item->setExtra('translation_domain', $this->translation_domain);

        return $item;
    }
protected function addHeader ( ItemInterface $ menu , $ label ) { $ item = $ menu -> addChild ( $ label ) ; $ item -> setAttribute ( 'class' , 'dropdown-header' ) ; $ item -> setExtra ( 'translation_domain' , $ this -> translation_domain ) ; return $ item ; }
Creates header element and adds it to menu

@param \Knp\Menu\ItemInterface $menu
@param string $label Header label
@return ItemInterface Header element
Creates header element and adds it to menu