This project is not covered by Drupal’s security advisory policy.
Migrates files and images inside body text fields (Long Text, formatted). By default, migrate will only migrate texts but not the images or files your content references to. This module provides a process plugin that does that for you.
This module is an enhancement to D8 core's migrate module. It contains a plugin that you can use in your migration template files. It also has a rollback EventSubscriber that deletes the migrated files, and file_managed entites on rollback.
Sample configuration:
process:
field_body:
plugin: body_text_content_migration
root_url_regex: 'http[s]?:\/\/(www\.)?test\.com'
file_location_regex: sites\/default\/files
append_relative_url: 'https://www.test.com'
subfolder_location: migrated-main-body
create_image_entity: true
source:
- field_body
- created
- changed
- status
- '@uid'
Install via composer
composer require drupal/migrate_body
Supporting organizations:
Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.- Project categories: Import and export, Developer tools
- Created by bryanmanalo on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

