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.
By phenaproxima on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.5.x
Introduced in version:
8.5.0
Issue links:
Description:
Previously, the \Drupal\migrate\MigrateExecutable class required an object implementing \Drupal\migrate\MigrateMessageInterface to be passed into its constructor:
use Drupal\migrate\MigrateMessage;
new MigrateExecutable($migration, new MigrateMessage());
The message object is no longer required. If it is not passed in, MigrateExecutable will create a new MigrateMessage object. So unless you need some special-sauce implementation of MigrateMessageInterface, you can just do this:
new MigrateExecutable($migration);
Impacts:
Module developers