8.5.x Row.php Row::rehash()
8.0.x Row.php Row::rehash()
8.1.x Row.php Row::rehash()
8.2.x Row.php Row::rehash()
8.3.x Row.php Row::rehash()
8.4.x Row.php Row::rehash()
8.6.x Row.php Row::rehash()

Recalculates the hash for the row.

File

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

Class

Row
Stores a row.

Namespace

Drupal\migrate

Code

public function rehash() {
  $this->idMap['original_hash'] = $this->idMap['hash'];
  $this->idMap['hash'] = hash('sha256', serialize($this->source));
}