Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Migrate 7x file field by node bundle

Security covered Maintenance fixes only

This module helps migrate file and image fields from Drupal 7 to Drupal 8+. It allows you to selectively migrate files associated with specific fields and content types, avoiding the need to transfer all files at once.

Allows for migrations from 7.x specific file and image fields attached on any 7.x node bundle.

This is useful when we want to create migrations the agile way so we can avoid migrating all the old files in bulk.

For example, on a Drupal 7.x website we may have an image field field_image on node type article.
Using this module we can migrate only the images of that field article.field_image and then use the new migrated files accordingly.

See on folder "examples" for such a case.

Notice that all the files are fetched with HTTP calls but you could override it on your yml.

Features

This module introduces two new migrate source plugins:

  • file_field_bundle
  • image_field_bundle

Code example

id: field_image_bundle_article
label: 'Files: field_image, bundle: article'
source:
  plugin: image_field_bundle
  scheme: public
  constants:
    source_base_path: 'https://www.example.com'
  field: field_image
  bundle: article
process:
  filename: filename
  ...
destination:
  plugin: 'entity:file'
Drupal 9–11

Ask your assistant about Migrate 7x file field by node bundle

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Sep 2024
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 9–11 Mar 2, 2026
1.x-dev Dev 9–11 Mar 2, 2026
1.0.1 Stable 9–11 Sep 3, 2024
1.0.0 Stable 9–11 Sep 3, 2024