Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I wanted to be able to run a Migration from a task in an install profile, and it would be nice if the code in migrate_ui.pages.inc had been abstract so I could re-use it. This is my first attempt. It's nice since I can start a batch just using the following:
$batch = new MigrateImportBatch();
$batch->addGroupMigration('my_migration_group');
$result = $batch->getBatch();
batch_set($result);
Comment | File | Size | Author |
---|---|---|---|
#8 | 2229113-batch-helper.patch | 15.27 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #3
Dave ReidWith 100% less syntax errors now.
Comment #4
Dave ReidNow with 500% more actual patch.
Comment #5
Dave ReidComment #6
Dave ReidFixed error with rollback processing and added drush_log() support.
Comment #7
Dave ReidRe-rolled for 7.x-2.x.
Comment #8
Dave ReidLast patch regressed on removing code. Updated patch fixes regression and uses new batch code in the migrate UI wizard.
Comment #9
mikeryanLooks good, but the new classes/methods need documentation.