function EntityStorageInterface::deleteRevision
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/EntityStorageInterface.php \Drupal\Core\Entity\EntityStorageInterface::deleteRevision()
- 8.9.x 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
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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.