function Migration::interruptMigration
Sets the migration status as interrupted with a given result code.
Parameters
int $result: One of the MigrationInterface::RESULT_* constants.
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.