You are here

public function Row::changed in Drupal 9

Same name and namespace in other branches
  1. 8 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 400

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

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