W3cubDocs

/Drupal 8

protected function SqlContentEntityStorage::doDeleteRevisionFieldItems

protected SqlContentEntityStorage::doDeleteRevisionFieldItems(ContentEntityInterface $revision)

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 588

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

protected function doDeleteRevisionFieldItems(ContentEntityInterface $revision) {
  $this->database->delete($this->revisionTable)
    ->condition($this->revisionKey, $revision->getRevisionId())
    ->execute();
  $this->deleteRevisionFromDedicatedTables($revision);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorage.php/function/SqlContentEntityStorage::doDeleteRevisionFieldItems/8.1.x