Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

The default Entity and DatabaseStorageController now support saving and deleting entity revisions.

To support this, a number of new methods have been added.

Store a new as a new revision in 7.x

$node->revision = TRUE;
node_save($node);

8.x

$node->setNewRevision();
$node->save();

// Load a revision.
$node = \Drupal::entityTypeManager()->getStorage('node')->loadRevision(1);

// Delete a revision.
$node = \Drupal::entityTypeManager()->getStorage('node')->deleteRevision(1);
Impacts: 
Module developers