abstract public function Schema::getFieldTypeMap

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::getFieldTypeMap()
  2. 8.x drupal/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema::getFieldTypeMap()
  3. 8.x drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema::getFieldTypeMap()
  4. 8.x drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema::getFieldTypeMap()

Returns a mapping of Drupal schema field names to DB-native field types.

Because different field types do not map 1:1 between databases, Drupal has its own normalized field type names. This function returns a driver-specific mapping table from Drupal names to the native names for each database.

Return value

array An array of Schema API field types to driver-specific field types.

3 methods override Schema::getFieldTypeMap()
Schema::getFieldTypeMap in drupal/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
Returns a mapping of Drupal schema field names to DB-native field types.
Schema::getFieldTypeMap in drupal/core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php
This maps a generic data type in combination with its data size to the engine-specific data type.
Schema::getFieldTypeMap in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
This maps a generic data type in combination with its data size to the engine-specific data type.

File

drupal/core/lib/Drupal/Core/Database/Schema.php, line 381
Definition of Drupal\Core\Database\Schema

Class

Schema

Namespace

Drupal\Core\Database

Code

public abstract function getFieldTypeMap();