Same name and namespace in other branches
  1. 8.9.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::changed()
  2. 9 core/modules/migrate/src/Row.php \Drupal\migrate\Row::changed()

Checks whether the row has changed compared to the original ID map.

Return value

bool TRUE if the row has changed, FALSE otherwise. If setIdMap() was not called, this always returns FALSE.

File

core/modules/migrate/src/Row.php, line 401

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function changed() {
  return $this->idMap['original_hash'] != $this->idMap['hash'];
}