function SqlContentEntityStorageSchema::getEntitySchemaTables

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntitySchemaTables()
  2. 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntitySchemaTables()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntitySchemaTables()

Gets a list of entity type tables.

Parameters

\Drupal\Core\Entity\Sql\TableMappingInterface $table_mapping: A table mapping object.

Return value

array A list of entity type tables, keyed by table key.

1 call to SqlContentEntityStorageSchema::getEntitySchemaTables()
SqlContentEntityStorageSchema::getEntitySchema in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Gets the entity schema for the specified entity type.

File

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

Class

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

Namespace

Drupal\Core\Entity\Sql

Code

protected function getEntitySchemaTables(TableMappingInterface $table_mapping) {
    
    /** @var \Drupal\Core\Entity\Sql\DefaultTableMapping $table_mapping */
    return array_filter([
        'base_table' => $table_mapping->getBaseTable(),
        'revision_table' => $table_mapping->getRevisionTable(),
        'data_table' => $table_mapping->getDataTable(),
        'revision_data_table' => $table_mapping->getRevisionDataTable(),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.