protected function SqlContentEntityStorageSchema::addTableDefaults

protected SqlContentEntityStorageSchema::addTableDefaults(&$schema)

Adds defaults to a table schema definition.

Parameters

$schema: The schema definition array for a single table, passed by reference.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 982

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function addTableDefaults(&$schema) {
  $schema += array(
    'fields' => array(),
    'unique keys' => array(),
    'indexes' => array(),
    'foreign keys' => array(),
  );
}

© 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::addTableDefaults/8.1.x