function MigrateExecutable::checkStatus

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

Checks for exceptional conditions, and display feedback.

2 calls to MigrateExecutable::checkStatus()
MigrateExecutable::import in core/modules/migrate/src/MigrateExecutable.php
Performs an import operation - migrate items from source to destination.
MigrateExecutable::rollback in core/modules/migrate/src/MigrateExecutable.php
Performs a rollback operation - remove previously-imported items.

File

core/modules/migrate/src/MigrateExecutable.php, line 521

Class

MigrateExecutable
Defines a migrate executable class.

Namespace

Drupal\migrate

Code

protected function checkStatus() {
    if ($this->memoryExceeded()) {
        return MigrationInterface::RESULT_INCOMPLETE;
    }
    return MigrationInterface::RESULT_COMPLETED;
}

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