Menu/MenuItem.php
public function addDivider()
    {
        $name = $this->getName().'_divider_'.$this->nbDividers;
        $child = $this->factory->createItem($name);

        $child->setParent($this);
        $child->setCurrentUri($this->getCurrentUri());

        $child->setChildrenAttribute('class', 'divider');
        $child->setDisplayLink(false);
        $child->setDisplayLabel(false);

        $this->children[$child->getName()] = $child;

        $this->nbDividers++;
        return $child;
    }
public function addDivider()
    {
        $name = $this->getName().'_divider_'.$this->nbDividers;
        $child = $this->factory->createItem($name);

        $child->setParent($this);
        $child->setCurrentUri($this->getCurrentUri());

        $child->setChildrenAttribute('class', 'divider');
        $child->setDisplayLink(false);
        $child->setDisplayLabel(false);

        $this->children[$child->getName()] = $child;

        $this->nbDividers++;
        return $child;
    }
public function addDivider ( ) { $ name = $ this -> getName ( ) . '_divider_' . $ this -> nbDividers ; $ child = $ this -> factory -> createItem ( $ name ) ; $ child -> setParent ( $ this ) ; $ child -> setCurrentUri ( $ this -> getCurrentUri ( ) ) ; $ child -> setChildrenAttribute ( 'class' , 'divider' ) ; $ child -> setDisplayLink ( false ) ; $ child -> setDisplayLabel ( false ) ; $ this -> children [ $ child -> getName ( ) ] = $ child ; $ this -> nbDividers ++ ; return $ child ; }
Add a divider

@return VinceT\AdminBundle\Menu\MenuItem
Add a divider