function Migration::interruptMigration
Same name in other branches
- 8.9.x core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::interruptMigration()
- 10 core/modules/migrate/src/Plugin/Migration.php \Drupal\migrate\Plugin\Migration::interruptMigration()
- 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 590
Class
- Migration
- Defines the Migration plugin.
Namespace
Drupal\migrate\PluginCode
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.