src/Netzmacht/Bootstrap/Buttons/Factory.php
protected static function createNewGroup(&$root, $button, &$dropdown, $addToRoot = true)
    {
        if ($addToRoot) {
            $root = self::enableToolbar($root);
        }

        if ($dropdown !== false) {
            $dropdown = false;
        }

        $group = static::createGroup($button['attributes'], true, ($button['type'] === 'vgroup'));

        if ($addToRoot) {
            $root->addChild($group);
        } else {
            $root = $group;
        }

        return $group;
    }
protected static function createNewGroup(&$root, $button, &$dropdown, $addToRoot = true)
    {
        if ($addToRoot) {
            $root = self::enableToolbar($root);
        }

        if ($dropdown !== false) {
            $dropdown = false;
        }

        $group = static::createGroup($button['attributes'], true, ($button['type'] === 'vgroup'));

        if ($addToRoot) {
            $root->addChild($group);
        } else {
            $root = $group;
        }

        return $group;
    }
protected static function createNewGroup ( & $ root , $ button , & $ dropdown , $ addToRoot = true ) { if ( $ addToRoot ) { $ root = self :: enableToolbar ( $ root ) ; } if ( $ dropdown !== false ) { $ dropdown = false ; } $ group = static :: createGroup ( $ button [ 'attributes' ] , true , ( $ button [ 'type' ] === 'vgroup' ) ) ; if ( $ addToRoot ) { $ root -> addChild ( $ group ) ; } else { $ root = $ group ; } return $ group ; }
Create a new group element.

@param mixed         $root      Current root.
@param array         $button    Button definition.
@param Dropdown|bool $dropdown  Dropdown element.
@param bool          $addToRoot If rue the created group is added to the root.

@return Group
Create a new group element .