src/Charcoal/Ui/Form/FormTrait.php
public function setGroups(array $groups)
    {
        $this->groups = [];

        foreach ($groups as $groupIdent => $group) {
            $this->addGroup($groupIdent, $group);
        }

        return $this;
    }
public function setGroups(array $groups)
    {
        $this->groups = [];

        foreach ($groups as $groupIdent => $group) {
            $this->addGroup($groupIdent, $group);
        }

        return $this;
    }
public function setGroups ( array $ groups ) { $ this -> groups = [ ] ; foreach ( $ groups as $ groupIdent => $ group ) { $ this -> addGroup ( $ groupIdent , $ group ) ; } return $ this ; }
Set the object's form groups.

@param array $groups A collection of group structures.
@return FormInterface Chainable
Set the object s form groups .