public function EntityStorageInterface::deleteRevision in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::deleteRevision()
- 10 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.
@todo Deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface instead.
Parameters
int $revision_id: The revision id.
See also
https://www.drupal.org/node/2926958
https://www.drupal.org/node/2927226
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 105
Class
- EntityStorageInterface
- Defines the interface for entity storage classes.
Namespace
Drupal\Core\EntityCode
public function deleteRevision($revision_id);