function entity_revision_delete

Deletes an entity revision.

Parameters

string $entity_type: The entity type to load, e.g. node or user.

$revision_id: The revision ID to delete.

1 call to entity_revision_delete()
node_revision_delete in drupal/core/modules/node/node.module
Deletes a node revision.

File

drupal/core/includes/entity.inc, line 199
Entity API for handling entities like nodes or users.

Code

function entity_revision_delete($entity_type, $revision_id) {
  Drupal::entityManager()
    ->getStorageController($entity_type)
    ->deleteRevision($revision_id);
}