protected function SqlContentEntityStorage::doDeleteRevisionFieldItems in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::doDeleteRevisionFieldItems()
- 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::doDeleteRevisionFieldItems()
Deletes field values of an entity revision from the storage.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $revision: An entity revision object to be deleted.
Overrides ContentEntityStorageBase::doDeleteRevisionFieldItems
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php, line 637
Class
- SqlContentEntityStorage
- A content entity database storage implementation.
Namespace
Drupal\Core\Entity\SqlCode
protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) {
$this->database
->delete($this->revisionTable)
->condition($this->revisionKey, $revision
->getRevisionId())
->execute();
if ($this->revisionDataTable) {
$this->database
->delete($this->revisionDataTable)
->condition($this->revisionKey, $revision
->getRevisionId())
->execute();
}
$this
->deleteRevisionFromDedicatedTables($revision);
}