public function getFieldTypeByCode($fieldTypeCode)
    {
        if (!isset($this->fieldTypes[$fieldTypeCode])) {
            throw new InvalidFieldTypeException(sprintf('Field type "%s" is not handled.', $fieldTypeCode));
        }
        return $this->fieldTypes[$fieldTypeCode];
    }
public function getFieldTypeByCode($fieldTypeCode)
    {
        if (!isset($this->fieldTypes[$fieldTypeCode])) {
            throw new InvalidFieldTypeException(sprintf('Field type "%s" is not handled.', $fieldTypeCode));
        }
        return $this->fieldTypes[$fieldTypeCode];
    }
public function getFieldTypeByCode ( $ fieldTypeCode ) { if ( ! isset ( $ this -> fieldTypes [ $ fieldTypeCode ] ) ) { throw new InvalidFieldTypeException ( sprintf ( 'Field type "%s" is not handled.' , $ fieldTypeCode ) ) ; } return $ this -> fieldTypes [ $ fieldTypeCode ] ; }
Get field type

@param string $fieldTypeCode

@return FieldTypeInterface

@throws InvalidFieldTypeException
Get field type