migrate_file_field_bundle
Security covered
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'