src/Utils/FormUtils.php
public static function convertShortFormType(?string $shortType): ?string
    {
        $mapping = [
            'choice' => ChoiceType::class,
            'string' => TextType::class,
            'entity' => EntityType::class,
            'date' => DateType::class,
            'datetime' => DateType::class,
            'text' => TextareaType::class,
            'number' => NumberType::class,
            'float' => NumberType::class,
            'integer' => IntegerType::class,
            'smallint' => IntegerType::class,
            'boolean' => CheckboxType::class,
            'bigint' => NumberType::class,
            'decimal' => NumberType::class,
            'guid' => TextType::class,
            'array' => TextareaType::class,
            'simple_array' => TextareaType::class,
            'json_array' => TextareaType::class,
        ];
        $type = $shortType;

        if (key_exists($shortType, $mapping)) {
            $type = $mapping[$shortType];
        }

        return $type;
    }
public static function convertShortFormType(?string $shortType): ?string
    {
        $mapping = [
            'choice' => ChoiceType::class,
            'string' => TextType::class,
            'entity' => EntityType::class,
            'date' => DateType::class,
            'datetime' => DateType::class,
            'text' => TextareaType::class,
            'number' => NumberType::class,
            'float' => NumberType::class,
            'integer' => IntegerType::class,
            'smallint' => IntegerType::class,
            'boolean' => CheckboxType::class,
            'bigint' => NumberType::class,
            'decimal' => NumberType::class,
            'guid' => TextType::class,
            'array' => TextareaType::class,
            'simple_array' => TextareaType::class,
            'json_array' => TextareaType::class,
        ];
        $type = $shortType;

        if (key_exists($shortType, $mapping)) {
            $type = $mapping[$shortType];
        }

        return $type;
    }
public static function convertShortFormType ( ? string $ shortType ) : ? string { $ mapping = [ 'choice' => ChoiceType :: class , 'string' => TextType :: class , 'entity' => EntityType :: class , 'date' => DateType :: class , 'datetime' => DateType :: class , 'text' => TextareaType :: class , 'number' => NumberType :: class , 'float' => NumberType :: class , 'integer' => IntegerType :: class , 'smallint' => IntegerType :: class , 'boolean' => CheckboxType :: class , 'bigint' => NumberType :: class , 'decimal' => NumberType :: class , 'guid' => TextType :: class , 'array' => TextareaType :: class , 'simple_array' => TextareaType :: class , 'json_array' => TextareaType :: class , ] ; $ type = $ shortType ; if ( key_exists ( $ shortType , $ mapping ) ) { $ type = $ mapping [ $ shortType ] ; } return $ type ; }
Convert a shortcut type into its class type.

@param string|null $shortType

@return string|null
Convert a shortcut type into its class type .