protected function addDropdown(ItemInterface $menu, $label, $caret = true)
    {
        $item = $this->addLinkURI($menu, $label, '#');
        $item->setChildrenAttributes(array('class' => 'treeview-menu'));
        $item->setAttributes(array('class' => 'treeview'));
        $item->setExtra('caret', $caret);

        return $item;
    }
protected function addDropdown(ItemInterface $menu, $label, $caret = true)
    {
        $item = $this->addLinkURI($menu, $label, '#');
        $item->setChildrenAttributes(array('class' => 'treeview-menu'));
        $item->setAttributes(array('class' => 'treeview'));
        $item->setExtra('caret', $caret);

        return $item;
    }
protected function addDropdown ( ItemInterface $ menu , $ label , $ caret = true ) { $ item = $ this -> addLinkURI ( $ menu , $ label , '#' ) ; $ item -> setChildrenAttributes ( array ( 'class' => 'treeview-menu' ) ) ; $ item -> setAttributes ( array ( 'class' => 'treeview' ) ) ; $ item -> setExtra ( 'caret' , $ caret ) ; return $ item ; }
Creates dropdown menu element and adds it to menu

@param \Knp\Menu\ItemInterface $menu
@param string $label Dropdown label
@param bool $caret Wheather or not append caret
@return ItemInterface Dropdown element
Creates dropdown menu element and adds it to menu