protected function SqlContentEntityStorageSchema::addTableDefaults in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::addTableDefaults()
- 10 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 1439
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
protected function addTableDefaults(&$schema) {
$schema += [
'fields' => [],
'unique keys' => [],
'indexes' => [],
'foreign keys' => [],
];
}