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
In order to leverage the MigrateFileUriAsIs class, the DrupalFileMigration class allows migrations to inject their own value to the file_class argument. However, DrupalFile7Migration::prepareRow() has an else condition that will apply $this->destination->setFileClass('MigrateFileUri');
to any file row that isn't a Youtube or oEmbed asset.
Proposed resolution
Remove that else condition to allow the migration argument setting to be the default behavior.
Remaining tasks
All the things.
User interface changes
None.
API changes
Restores function of the file_class argument.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2903724-2_use_file_class_default.patch | 498 bytes | Grayside |
Comments
Comment #2
Grayside CreditAttribution: Grayside at Phase2 commented