Active
Project:
Diff
Version:
2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2026 at 23:54 UTC
Updated:
15 Jun 2026 at 17:46 UTC
Jump to comment: Most recent
Diff 2.1.0 was just released with entity -agnostic support!
Given the relatively new nature of the generic revisioning UIs in core and how long everyone has been rolling their own for custom entity types, the enabling criteria for full compatibility should be documented for module developers.
Try to use diff with ancient entity types and note that the route subscriber may not apply (and the custom entities may retain the core revisioning UI).
Write a documentation page that outlines what custom entity types must implement to be fully compatible with diff.
None
None
None
Comments
Comment #2
luke.leberComment #3
m.stentaMaybe this will help someone else... I ran into an issue while converting our custom entity types from the Entity API's
RevisionRouteProviderto Drupal core's newRevisionHtmlRouteProvider: #3596981: Uncaught PHP Exception: revision_translation_affected not foundOur custom entity types did not have
revision_data_tabledefined in their entity definitions. Drupal's documentation doesn't specify it, so there may be many others who experience the same issue.In the end, we had to add
revision_data_tableto the entity definitions, and also add an update hook to update them.For an example, see: #3600574: Use Drupal core RevisionHtmlRouteProvider
Comment #4
m.stentaAnother thing we had to do was provide permissions for viewing/reverting revisions, and implement
hook_entity_access()to check for them. See: #3601012: Fix access to log entity revisionsEntity API handled this for us previously.