src/Netzmacht/Bootstrap/Buttons/Factory.php
public static function createDropdownItem($label, $url, array $attributes = array(), $fromFieldset = false)
    {
        $button = static::createButton($label, $url, $attributes, $fromFieldset);
        $button->setAttribute('role', 'menuitem');
        $dropdown = new Dropdown\Item($button);

        return $dropdown;
    }
public static function createDropdownItem($label, $url, array $attributes = array(), $fromFieldset = false)
    {
        $button = static::createButton($label, $url, $attributes, $fromFieldset);
        $button->setAttribute('role', 'menuitem');
        $dropdown = new Dropdown\Item($button);

        return $dropdown;
    }
public static function createDropdownItem ( $ label , $ url , array $ attributes = array ( ) , $ fromFieldset = false ) { $ button = static :: createButton ( $ label , $ url , $ attributes , $ fromFieldset ) ; $ button -> setAttribute ( 'role' , 'menuitem' ) ; $ dropdown = new Dropdown \ Item ( $ button ) ; return $ dropdown ; }
Create dropdown item.

@param string $label        Dropdown label.
@param string $url          Dropdown url.
@param array  $attributes   Additional html attributes.
@param bool   $fromFieldset Set true if attributes comes from fieldset definitions have to be transformed.

@return Dropdown\Item
Create dropdown item .