src/Charcoal/Ui/Form/FormTrait.php
public function addGroup($groupIdent, $group)
    {
        if ($group === false || $group === null) {
            return $this;
        }

        $group = $this->parseFormGroup($groupIdent, $group);

        if (isset($group['ident'])) {
            $groupIdent = $group['ident'];
        }

        $this->groups[$groupIdent] = $group;

        return $this;
    }
public function addGroup($groupIdent, $group)
    {
        if ($group === false || $group === null) {
            return $this;
        }

        $group = $this->parseFormGroup($groupIdent, $group);

        if (isset($group['ident'])) {
            $groupIdent = $group['ident'];
        }

        $this->groups[$groupIdent] = $group;

        return $this;
    }
public function addGroup ( $ groupIdent , $ group ) { if ( $ group === false || $ group === null ) { return $ this ; } $ group = $ this -> parseFormGroup ( $ groupIdent , $ group ) ; if ( isset ( $ group [ 'ident' ] ) ) { $ groupIdent = $ group [ 'ident' ] ; } $ this -> groups [ $ groupIdent ] = $ group ; return $ this ; }
Add a form group.

@param  string                   $groupIdent The group identifier.
@param  array|FormGroupInterface $group      The group object or structure.
@throws InvalidArgumentException If the identifier is not a string or the group is invalid.
@return FormInterface Chainable
Add a form group .