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.
protected function addMigration($machine_name, $class_name, $arguments
but:
static public function registerMigration($class_name, $machine_name = NULL,
array $arguments = array()) {
This is really painful to work with! I keep forgetting which way round the class name and machine name go, and since the values you pass in are pretty similar anyway, it's just makes for a really confusing time all round!
Comments
Comment #1
mikeryanGood point - but it's tricky to make the change when migrate_d2d and wordpress_migrate are already using it. Timing is everything - perhaps committing the change to all three modules just before simultaneous new releases, and hope anyone using migrate_d2d and/or wordpress_migrate makes sure to update to all the new releases. Which still screws anyone building their own wizards (as you are) - the effect will be hard to debug... I'll think about it, not sure if it's worthwhile at this point.
Comment #2
mikeryanNo, not going to make the change at this point, it'll make a mess of existing implementations.