You are here

public function NodeRevisionDeleteInterface::getPreviousRevisions in Node Revision Delete 8

Get all revision that are older than current deleted revision.

The revisions should have the same language as the current language of the page.

Parameters

int $nid: The node id.

int $currently_deleted_revision_id: The current revision.

Return value

array An array with the previous revisions.

1 method overrides NodeRevisionDeleteInterface::getPreviousRevisions()
NodeRevisionDelete::getPreviousRevisions in src/NodeRevisionDelete.php
Get all revision that are older than current deleted revision.

File

src/NodeRevisionDeleteInterface.php, line 110

Class

NodeRevisionDeleteInterface
Interface NodeRevisionDeleteInterface.

Namespace

Drupal\node_revision_delete

Code

public function getPreviousRevisions($nid, $currently_deleted_revision_id);