You are here

protected function MigrateExecutable::resetCounters in Migrate Tools 8.3

Same name and namespace in other branches
  1. 8.5 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::resetCounters()
  2. 8 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::resetCounters()
  3. 8.2 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::resetCounters()
  4. 8.4 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::resetCounters()

Reset all the per-status counters to 0.

2 calls to MigrateExecutable::resetCounters()
MigrateExecutable::onPostRowDelete in src/MigrateExecutable.php
React to item rollback.
MigrateExecutable::onPrepareRow in src/MigrateExecutable.php
React to a new row.

File

src/MigrateExecutable.php, line 208

Class

MigrateExecutable

Namespace

Drupal\migrate_tools

Code

protected function resetCounters() {
  foreach ($this->saveCounters as $status => $count) {
    $this->saveCounters[$status] = 0;
  }
  $this->deleteCounter = 0;
}