Skip to content
Snippets Groups Projects

Issue #3014353: Migrate Tools Rollback, use batch process if possible

2 files
+ 139
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -193,13 +193,7 @@ class MigrationExecuteForm extends FormBase {
case 'rollback':
$executable = new MigrateBatchExecutable($migration_plugin, $migrateMessage, $this->buildOptions($form_state));
$status = $executable->rollback();
if ($status === MigrationInterface::RESULT_COMPLETED) {
$this->messenger()->addStatus($this->t('Rollback completed', ['@id' => $migration_id]));
}
else {
$this->messenger()->addError($this->t('Rollback of !name migration failed.', ['!name' => $migration_id]));
}
$executable->batchRollback();
break;
case 'stop':
Loading