public function SqlContentEntityStorage::setTableMapping in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::setTableMapping()
- 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::setTableMapping()
Sets the wrapped table mapping definition.
@internal Only to be used internally by Entity API. Expected to be removed by https://www.drupal.org/node/2554235.
Parameters
\Drupal\Core\Entity\Sql\TableMappingInterface $table_mapping: The table mapping.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php, line 321
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\SqlCode
public function setTableMapping(TableMappingInterface $table_mapping) {
$this->tableMapping = $table_mapping;
$this->baseTable = $table_mapping
->getBaseTable();
$this->revisionTable = $table_mapping
->getRevisionTable();
$this->dataTable = $table_mapping
->getDataTable();
$this->revisionDataTable = $table_mapping
->getRevisionDataTable();
}