migrate_paragraphs_subprocess
4 sites
No security coverage
Provides a Migrate process plugin to pull entity_reference_revisions paragraphs from multiple paragraph-type migrations into a parent entity, preserving deltas and revisions.
Features
- Multi-migration support: Query multiple migrate_map tables to collect paragraphs from different paragraph-type migrations.
- Delta ordering: Respects original paragraph order by sorting on source delta.
- Revision preservation: Returns both paragraph entity IDs and revision IDs.
Post-Installation
After enabling, there is no UI. To use the plugin, simply reference it in your migration YAML:
process:
field_paragraphs:
- plugin: paragraphs_sub_process
source: field_base_para_reference
migration:
- paragraph_type_one
- paragraph_type_two
process:
target_id: '0'
target_revision_id: '1'
migration_dependencies:
required:
- paragraph_type_one
- paragraph_type_two
Clear caches (drush cr) and run your migration as usual.
Recommended modules/libraries
- Migrate Tools — for Drush and UI commands to run and roll back migrations.
Similar projects
- Migrate Paragraphs — only handles one paragraph migration; this plugin aggregates multiple paragraph-type migrations.