Skip to content
Snippets Groups Projects

Issue #3488283: Computed fields should be excluded from the diff

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -53,7 +53,7 @@ class DiffEntityParser {
// Loop through entity fields and transform every FieldItemList object
// into an array of strings according to field type specific settings.
/** @var \Drupal\Core\Field\FieldItemListInterface $field_items */
foreach ($entity as $field_items) {
foreach ($entity->getFields(FALSE) as $field_items) {
// Define if the current field should be displayed as a diff change.
$show_diff = $this->diffBuilderManager->showDiff($field_items->getFieldDefinition()->getFieldStorageDefinition());
if (!$show_diff || !$entity->get($field_items->getFieldDefinition()->getName())->access('view')) {
Loading