function KeyValueEntityStorage::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.
Overrides EntityStorageInterface::deleteRevision
File
- 
              core/
lib/ Drupal/ Core/ Entity/ KeyValueStore/ KeyValueEntityStorage.php, line 141  
Class
- KeyValueEntityStorage
 - Provides a key value backend for entities.
 
Namespace
Drupal\Core\Entity\KeyValueStoreCode
public function deleteRevision($revision_id) {
  return NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.