8.5.x Row.php Row::changed()
8.0.x Row.php Row::changed()
8.1.x Row.php Row::changed()
8.2.x Row.php Row::changed()
8.3.x Row.php Row::changed()
8.4.x Row.php Row::changed()
8.6.x Row.php 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 333

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

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