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.
Problem/Motivation
MigrateExecutable is type hinted in a few places, it has public methods but doesn't have an interface.
Proposed resolution
Add an interface with all the current public methods.
Updated anywhere that is type hinting with MigrateExecutable and then change it to MigrateExecutableInterface
Remaining tasks
Write patch
User interface changes
n/a
API changes
n/a
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff.txt | 1 KB | benjy |
#5 | 2443615-5.patch | 50.91 KB | benjy |
#3 | 2443615-3.patch | 50.93 KB | benjy |
#1 | 2443615-1.patch | 24.59 KB | benjy |
Comments
Comment #1
benjy CreditAttribution: benjy commentedPatch attached.
Comment #3
benjy CreditAttribution: benjy commentedReplaced MigrateExecutable with MigrateExecutableInterface in migrate_drupal as well.
Comment #5
benjy CreditAttribution: benjy commentedBad F&R
Comment #6
chx CreditAttribution: chx commentedYay, cleaner code! Here to unit testing as well.
Comment #7
webchickThis looks like it's bringing things in-line with similar code elsewhere in D8. Migrate is unfrozen in beta.
Committed and pushed to 8.0.x. Thanks!