protected SqlContentEntityStorageSchema::processIdentifierSchema(&$schema, $key)
Processes the specified entity key.
array $schema: The table schema, passed by reference.
string $key: The entity key name.
protected function processIdentifierSchema(&$schema, $key) { if ($schema['fields'][$key]['type'] == 'int') { $schema['fields'][$key]['type'] = 'serial'; } $schema['fields'][$key]['not null'] = TRUE; unset($schema['fields'][$key]['default']); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorageSchema.php/function/SqlContentEntityStorageSchema::processIdentifierSchema/8.1.x