function Migration::interruptMigration

Same name in other branches
  1. 9 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::interruptMigration()
  2. 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::interruptMigration()
  3. 11.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::interruptMigration()

Overrides MigrationInterface::interruptMigration

File

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

Class

Migration
Defines the Migration plugin.

Namespace

Drupal\migrate\Plugin

Code

public function interruptMigration($result) {
    $this->setStatus(MigrationInterface::STATUS_STOPPING);
    \Drupal::keyValue('migrate_interruption_result')->set($this->id(), $result);
}

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