function SqlContentEntityStorage::mapToDataStorageRecord
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::mapToDataStorageRecord()
- 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::mapToDataStorageRecord()
- 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::mapToDataStorageRecord()
Maps from an entity object to the storage record of the field data.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity object.
string $table_name: (optional) The table name to map records to. Defaults to the data table.
Return value
object The record to store.
1 call to SqlContentEntityStorage::mapToDataStorageRecord()
- SqlContentEntityStorage::saveToSharedTables in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Saves fields that use the shared tables.
File
-
core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php, line 1146
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\SqlCode
protected function mapToDataStorageRecord(EntityInterface $entity, $table_name = NULL) {
if (!isset($table_name)) {
$table_name = $this->dataTable;
}
$record = $this->mapToStorageRecord($entity, $table_name);
return $record;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.