protected function DbDumpComman8b7c:f320:99b9:690f:4595:cd17:293a:c069fieldTypeMap protected DbDumpComman8b7c:f320:99b9:690f:4595:cd17:293a:c069fieldTypeMap(Connection $connection, $type) Given a database field type, return a Drupal type. Parameters  \Drupal\Core\Database\Connection $connection: The database connection to use. string $type: The MySQL field type. Return value  string The Drupal schema field type. If there is no mapping, the original field type is returned. File
 core/lib/Drupal/Core/Command/DbDumpCommand.php, line 301  Class
 
DbDumpCommand  Provides a command to dump the current database to a script.  Namespace Drupal\Core\Command Code protected function fieldTypeMap(Connection $connection, $type) {
  // Convert everything to lowercase.
  $map = array_map('strtolower', $connection->schema()->getFieldTypeMap());
  $map = array_flip($map);

  // The MySql map contains type:size. Remove the size part.
  return isset($map[$type]) ? explode(':', $map[$type]) [0] : $type;
}


    
{'path': 'public/docs/drupal~8/core-lib-drupal-core-command-dbdumpcommand.php/function/dbdumpcommand-fieldtypemap/8.1.x.html', 'source': 'DevDocs.IO'}