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(),
  );
}
doc_Drupal
2016-10-29 09:43:34
Comments
Leave a Comment

Please login to continue.