code: public static function detect(DbBaseField $field)
      {
          if (!$field->human) {
              return 'hidden';
          } else {
              $fieldType = $type = 'text';
              $dbMap = ['date' => 'date'];
  
              $fieldSchema = $field->fieldSchema;
              if ($fieldSchema->dbType === 'tinyint(1)') {
                  return 'boolean';
              }
              if ($field->multiline) {
                  return 'textarea';
              } elseif ($fieldSchema->type === 'boolean') {
                  return 'boolean';
              } elseif (isset($dbMap[$fieldSchema->dbType])) {
                  return $dbMap[$fieldSchema->dbType];
              }
  
              return 'text';
          }
      }
docs: [[@doctodo method_description:detect]].
  
  @param cascade\components\db\fields\Base $field [[@doctodo param_description:field]]
  
  @return [[@doctodo return_type:detect]] [[@doctodo return_description:detect]]