function Schema::getFieldTypeMap
Same name in this branch
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::getFieldTypeMap()
- 10 core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema::getFieldTypeMap()
- 10 core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::getFieldTypeMap()
- 10 core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php \Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Schema::getFieldTypeMap()
Same name in other branches
- 9 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::getFieldTypeMap()
- 9 core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema::getFieldTypeMap()
- 9 core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::getFieldTypeMap()
- 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Schema.php \Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses\Schema::getFieldTypeMap()
- 9 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::getFieldTypeMap()
- 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema::getFieldTypeMap()
- 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema::getFieldTypeMap()
- 8.9.x core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema::getFieldTypeMap()
- 8.9.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::getFieldTypeMap()
- 11.x core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::getFieldTypeMap()
- 11.x core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema::getFieldTypeMap()
- 11.x core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema::getFieldTypeMap()
- 11.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\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.
4 methods override Schema::getFieldTypeMap()
- Schema::getFieldTypeMap in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Schema.php - Returns a mapping of Drupal schema field names to DB-native field types.
- Schema::getFieldTypeMap in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Schema.php - Returns a mapping of Drupal schema field names to DB-native field types.
- Schema::getFieldTypeMap in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Schema.php - Returns a mapping of Drupal schema field names to DB-native field types.
- Schema::getFieldTypeMap in core/
tests/ fixtures/ database_drivers/ module/ core_fake/ src/ Driver/ Database/ CoreFakeWithAllCustomClasses/ Schema.php - Returns a mapping of Drupal schema field names to DB-native field types.
File
-
core/
lib/ Drupal/ Core/ Database/ Schema.php, line 270
Class
- Schema
- Provides a base implementation for Database Schema.
Namespace
Drupal\Core\DatabaseCode
public abstract function getFieldTypeMap();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.