Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297510

All content entities should extend RevisionableContentEntityBase

$
0
0

Currently in core there are only two revisionable entity types, Node and BlockContent. There are other issues (such as #2705433: Node should implement RevisionLogInterface) which look at making these implement RevisionLongInterface, because extending RevisionableContentEntityBase could be difficult or API breaking.

This issue will look at converting the following entity types to be revisionable and extend RevisionableContentEntityBase:

  • Comment
  • Feed (actual feed information)
  • File
  • Item (Feed item)
  • MenuLinkContent
  • Message (Contact form message)
  • Shortcut
  • Term

This first depends on #2707255: All content entities should inherit baseFieldDefinitions to make sure the relevant base fields are added once these entity types are updated.

Note: We are not planning to make the User entity revisionable. Users are a special case in Drupal as they can be both content, and the account that you authenticate against. This means that making them revisionable could result in more complications than are in scope of this issue.

To be done

  • Figure out how the data migration should work

Background

Multiversion module currently makes all content entities revisionable by a series of hooks. It however does not make use of RevisionableContentEntityBase.


Viewing all articles
Browse latest Browse all 297510

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>