Change record status: 
Project: 
Introduced in branch: 
8.8.x
Introduced in version: 
8.8.0
Description: 

All revisionable entity types are now able to specify the parent and a possible merge parent for each revision. This allows each individual revision of an entity to be part of a revision tree, which provides the ability to introduce a conflict management system in a later core version.

Four new methods are available on \Drupal\Core\Entity\RevisionableInterface, with default implementations provided in \Drupal\Core\Entity\ContentEntityBase.:

  • getParentRevisionId()
  • setParentRevisionId($revision_id)
  • getMergeParentRevisionId()
  • setMergeParentRevisionId($revision_id)

A new revision_tree entity handler has been added by default to all revisionable entity types, with a default implementation provided in \Drupal\Core\Entity\Sql\SqlRevisionTreeHandler.

A new revision_reference field type has been added, not shown in the Field UI and without having a widget or a formatter.

Impacts: 
Site builders, administrators, editors
Module developers