Menu/AdmingeneratorMenuBuilder.php
protected function addDivider(ItemInterface $menu)
    {
        do {
            $name = 'divider'.mt_rand();
        } while (in_array($name, $this->dividers));

        $this->dividers[] = $name;

        $item = $menu->addChild($name, array());
        $item->setLabel('');
        $item->setAttribute('class', 'divider');

        return $item;
    }
protected function addDivider(ItemInterface $menu)
    {
        do {
            $name = 'divider'.mt_rand();
        } while (in_array($name, $this->dividers));

        $this->dividers[] = $name;

        $item = $menu->addChild($name, array());
        $item->setLabel('');
        $item->setAttribute('class', 'divider');

        return $item;
    }
protected function addDivider ( ItemInterface $ menu ) { do { $ name = 'divider' . mt_rand ( ) ; } while ( in_array ( $ name , $ this -> dividers ) ) ; $ this -> dividers [ ] = $ name ; $ item = $ menu -> addChild ( $ name , array ( ) ) ; $ item -> setLabel ( '' ) ; $ item -> setAttribute ( 'class' , 'divider' ) ; return $ item ; }
Creates divider element and adds it to menu

@param \Knp\Menu\ItemInterface $menu
@return ItemInterface Divider element
Creates divider element and adds it to menu