drupalorg_migrate-1.0.x-dev/migrations/drupalorg_migrate_field_collection_release_files.yml
migrations/drupalorg_migrate_field_collection_release_files.yml
id: drupalorg_migrate_field_collection_release_files
# @todo Need to redo this whole migration with a different ID and replace usages all over.
label: 'Drupal.org field collection "Release Files"'
migration_group: drupalorg_migrate
migration_tags:
- Drupal 7
- Content
- Field Collection Content
#deriver: Drupal\paragraphs\Plugin\migrate\D7FieldCollectionItemDeriver
source:
plugin: d7_field_collection_item
field_name: field_release_files
destination:
plugin: entity_reference_revisions:paragraph
default_bundle: release_files
process:
# Map fields from field collection to paragraph
field_release_file:
plugin: sub_process
source: field_release_file
process:
target_id:
plugin: migration_lookup
migration: drupalorg_migrate_field_collection_release_files_media_documents
source: fid
field_release_file_hash: field_release_file_hash
field_release_file_sha1: field_release_file_sha1
field_release_file_sha256: field_release_file_sha256
langcode:
plugin: default_value
default_value: 'en'
migration_dependencies:
optional:
- drupalorg_migrate_field_collection_release_files_media_documents
dependencies:
enforced:
module:
- drupalorg_migrate
