You are here

public function Row::rehash in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Row.php \Drupal\migrate\Row::rehash()

Recalculates the hash for the row.

File

core/modules/migrate/src/Row.php, line 298
Contains \Drupal\migrate\Row.

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));
}