function RevisionableStorageInterface::deleteRevision
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision()
- 8.9.x core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision()
- 10 core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision()
Deletes 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.
2 methods override RevisionableStorageInterface::deleteRevision()
- ContentEntityStorageBase::deleteRevision in core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php - Deletes a specific entity revision.
- KeyValueContentEntityStorage::deleteRevision in core/
lib/ Drupal/ Core/ Entity/ KeyValueStore/ KeyValueContentEntityStorage.php - Deletes a specific entity revision.
File
-
core/
lib/ Drupal/ Core/ Entity/ RevisionableStorageInterface.php, line 55
Class
- RevisionableStorageInterface
- A storage that supports revisionable entity types.
Namespace
Drupal\Core\EntityCode
public function deleteRevision($revision_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.