You are here

public function MigrateExecutable::getProcessedCount in Migrate Tools 8.3

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

Return the total number of items processed. Note that STATUS_NEEDS_UPDATE is not counted, since this is typically set on stubs created as side effects, not on the primary item being imported.

Return value

int

2 calls to MigrateExecutable::getProcessedCount()
MigrateExecutable::onPrepareRow in src/MigrateExecutable.php
React to a new row.
MigrateExecutable::progressMessage in src/MigrateExecutable.php
Emit information on what we've done since the last feedback (or the beginning of this migration).

File

src/MigrateExecutable.php, line 189

Class

MigrateExecutable

Namespace

Drupal\migrate_tools

Code

public function getProcessedCount() {
  return $this->saveCounters[MigrateIdMapInterface::STATUS_IMPORTED] + $this->saveCounters[MigrateIdMapInterface::STATUS_NEEDS_UPDATE] + $this->saveCounters[MigrateIdMapInterface::STATUS_IGNORED] + $this->saveCounters[MigrateIdMapInterface::STATUS_FAILED];
}