You are here

protected function MigrateExecutable::checkStatus in Drupal 9

Same name and namespace in other branches
  1. 8 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 462

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