In some use cases, developers may want to override the way that content entities are parsed to display a diff. For example, fields that are hidden on an entity's view display configuration are not included in the diff, but developers may still want a way to expose changes to those fields for users viewing the diff. A solution to this use case was addressed in Issue #2635852: Make the 'visible fields only' comparison configurable β , but in the three years since that issue, the module has been rearchitected and the code enabling that approach is no longer part of this module.
The patch I am attaching introduces a new hook, hook_diff_parse_entity_alter()
, which allows developers to alter the list of entity fields being used in a diff comparison.
Need community members to review and test the patch.
None.
Introduces a new hook, hook_diff_parse_entity_alter()
.
None.
Introduces a hook that allows developers to alter the array of entity fields used in \Drupal\diff\DiffEntityComparison.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.