function ChangedFieldItemList::hasAffectingChanges

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::hasAffectingChanges()
  2. 8.9.x core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::hasAffectingChanges()
  3. 10 core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::hasAffectingChanges()

Overrides FieldItemList::hasAffectingChanges

File

core/lib/Drupal/Core/Field/ChangedFieldItemList.php, line 24

Class

ChangedFieldItemList
Defines an item list class for changed fields.

Namespace

Drupal\Core\Field

Code

public function hasAffectingChanges(FieldItemListInterface $original_items, $langcode) {
    // 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.
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.