You are here

public function Migration::getInterruptionResult in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getInterruptionResult()
  2. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::getInterruptionResult()

Get the result to return upon interruption.

Return value

int The current interruption result. Defaults to RESULT_INCOMPLETE.

Overrides MigrationInterface::getInterruptionResult

File

core/modules/migrate/src/Plugin/Migration.php, line 499

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function getInterruptionResult() {
  return \Drupal::keyValue('migrate_interruption_result')
    ->get($this
    ->id(), static::RESULT_INCOMPLETE);
}