You are here

public function MigrateExecutable::getProcessedCount in Migrate Tools 8.5

Same name and namespace in other branches
  1. 8 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::getProcessedCount()
  2. 8.2 src/MigrateExecutable.php \Drupal\migrate_tools\MigrateExecutable::getProcessedCount()
  3. 8.3 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 The processed count.

1 call to MigrateExecutable::getProcessedCount()
MigrateExecutable::progressMessage in src/MigrateExecutable.php
Emit information on what we've done.

File

src/MigrateExecutable.php, line 205

Class

MigrateExecutable
Defines a migrate executable class for drush.

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