public function getFieldTypeFormChoices()
    {
        $choices = [];
        foreach ($this->fieldTypes as $code => $fieldType) {
            $fieldGroup = 'field_type.group.' . $fieldType->getFieldGroup();
            if (!isset($choices[$fieldGroup])) {
                $choices[$fieldGroup] = [];
            }
            $choices[$fieldGroup]['field_type.' . $fieldType->getCode() . '.label'] = $code;
        }

        return $choices;
    }
public function getFieldTypeFormChoices()
    {
        $choices = [];
        foreach ($this->fieldTypes as $code => $fieldType) {
            $fieldGroup = 'field_type.group.' . $fieldType->getFieldGroup();
            if (!isset($choices[$fieldGroup])) {
                $choices[$fieldGroup] = [];
            }
            $choices[$fieldGroup]['field_type.' . $fieldType->getCode() . '.label'] = $code;
        }

        return $choices;
    }
public function getFieldTypeFormChoices ( ) { $ choices = [ ] ; foreach ( $ this -> fieldTypes as $ code => $ fieldType ) { $ fieldGroup = 'field_type.group.' . $ fieldType -> getFieldGroup ( ) ; if ( ! isset ( $ choices [ $ fieldGroup ] ) ) { $ choices [ $ fieldGroup ] = [ ] ; } $ choices [ $ fieldGroup ] [ 'field_type.' . $ fieldType -> getCode ( ) . '.label' ] = $ code ; } return $ choices ; }
Get available field types

@return array
Get available field types