function 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.
1 method overrides SqlContentEntityStorage::setTableMapping()
- TestableSqlContentEntityStorage::setTableMapping in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ Sql/ TestableSqlContentEntityStorage.php - Sets the table mapping.
File
-
core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php, line 322
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.