function Row::rehash

Same name in other branches
  1. 9 core/modules/migrate/src/Row.php \Drupal\migrate\Row::rehash()
  2. 8.9.x core/modules/migrate/src/Row.php \Drupal\migrate\Row::rehash()
  3. 10 core/modules/migrate/src/Row.php \Drupal\migrate\Row::rehash()

Recalculates the hash for the row.

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.