You are here

public function Migration::getInterruptionResult in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Entity/Migration.php \Drupal\migrate\Entity\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/Entity/Migration.php, line 442
Contains \Drupal\migrate\Entity\Migration.

Class

Migration
Defines the Migration entity.

Namespace

Drupal\migrate\Entity

Code

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