public function resolveGroups($formType)
    {
        $formGroups = null;
        if (isset($this->formConfig[$formType]['default_groups'])) {
            $formGroups = $this->formConfig[$formType]['default_groups'];
        }

        if(is_array($formGroups)) {
            $groups = $formGroups;
        } else {
            $groups = $this->defaultGroups;
        }

        return $this->groupManager->getGroupsByCodes($groups);
    }
public function resolveGroups($formType)
    {
        $formGroups = null;
        if (isset($this->formConfig[$formType]['default_groups'])) {
            $formGroups = $this->formConfig[$formType]['default_groups'];
        }

        if(is_array($formGroups)) {
            $groups = $formGroups;
        } else {
            $groups = $this->defaultGroups;
        }

        return $this->groupManager->getGroupsByCodes($groups);
    }
public function resolveGroups ( $ formType ) { $ formGroups = null ; if ( isset ( $ this -> formConfig [ $ formType ] [ 'default_groups' ] ) ) { $ formGroups = $ this -> formConfig [ $ formType ] [ 'default_groups' ] ; } if ( is_array ( $ formGroups ) ) { $ groups = $ formGroups ; } else { $ groups = $ this -> defaultGroups ; } return $ this -> groupManager -> getGroupsByCodes ( $ groups ) ; }
Return groups by form type

@param string $formType

@return Group[]
Return groups by form type