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
There is some duplicate code in the CredentialForm.php which needs to be addressed and by doing that it will make working on #2826742: Expose migration types in Migrate UI just a little easier. At least, I think so.
Proposed resolution
Have only one instance of calling setupMigrations() and the same for the block of code getting the legacy Drupal version. Also, move setupMigrations from FormBase to the CredentialForm since that is the only place it is used
Remaining tasks
Test the patch
Review
User interface changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | 3049895-2.patch | 7.19 KB | quietone |
Comments
Comment #2
quietone CreditAttribution: quietone as a volunteer commentedSeems straightforward.
Comment #3
heddnLooks fine. Just some simple code cleanup.
Comment #4
catchCommitted/pushed to 8.8.x and cherry-picked to 8.7.x, thanks!