Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::deleteRevision()
  2. 9 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::deleteRevision()

Delete a specific entity revision.

A revision can only be deleted if it's not the currently active one.

Parameters

int $revision_id: The revision id.

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision instead.

See also

https://www.drupal.org/node/2926958

https://www.drupal.org/node/2927226

https://www.drupal.org/node/3294237

4 methods override EntityStorageInterface::deleteRevision()
ConfigEntityStorage::deleteRevision in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Delete a specific entity revision.
ContentEntityStorageBase::deleteRevision in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Delete a specific entity revision.
KeyValueEntityStorage::deleteRevision in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php
Delete a specific entity revision.
RevisionableStorageInterface::deleteRevision in core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php
Deletes a specific entity revision.

File

core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 107

Class

EntityStorageInterface
Defines the interface for entity storage classes.

Namespace

Drupal\Core\Entity

Code

public function deleteRevision($revision_id);