- // When saving entities in the user interface, the changed timestamp is
- // automatically incremented by ContentEntityForm::submitForm() even if
- // nothing was actually changed. Thus, the changed time needs to be
- // ignored when determining whether there are any actual changes in the
- // entity.
- $field = $entity->get($field_name);
- if ($field instanceof ChangedFieldItemList) {
- continue;
- }
-
- $items = $field->filterEmptyItems();