You are here

protected function SqlContentEntityStorageSchema::addTableDefaults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::addTableDefaults()

Adds defaults to a table schema definition.

Parameters

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

4 calls to SqlContentEntityStorageSchema::addTableDefaults()
SqlContentEntityStorageSchema::initializeBaseTable in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Initializes common information for a base table.
SqlContentEntityStorageSchema::initializeDataTable in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Initializes common information for a data table.
SqlContentEntityStorageSchema::initializeRevisionDataTable in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Initializes common information for a revision data table.
SqlContentEntityStorageSchema::initializeRevisionTable in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Initializes common information for a revision table.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 987
Contains \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema.

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(),
  );
}