protected function SqlContentEntityStorageSchema::getEntitySchemaTables in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::getEntitySchemaTables()
- 9 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 1022
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
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(),
]);
}