61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
|
|
# Migration configuration for attaching paragraphs to parent paragraphs (row).
|
||
|
|
id: cdesai_paragraph_parents
|
||
|
|
label: 'Parent (Row) Paragraphs'
|
||
|
|
migration_group: CDESAI
|
||
|
|
|
||
|
|
source:
|
||
|
|
# Upload source files at /admin/config/development/cdesai/migrate.
|
||
|
|
plugin: cdesai_paragraph_migrate_source
|
||
|
|
|
||
|
|
process:
|
||
|
|
langcode: en
|
||
|
|
field_bundles/target_id:
|
||
|
|
# Skips a row if skip_migration property is set to TRUE.
|
||
|
|
-
|
||
|
|
plugin: skip_on_value
|
||
|
|
equals: true
|
||
|
|
source: skip_migration
|
||
|
|
value: 'TRUE'
|
||
|
|
method: row
|
||
|
|
# Skips a row if scrapped property is set to FALSE.
|
||
|
|
-
|
||
|
|
plugin: skip_on_value
|
||
|
|
equals: true
|
||
|
|
source: scrapped
|
||
|
|
value: 'FALSE'
|
||
|
|
method: row
|
||
|
|
-
|
||
|
|
plugin: migration_lookup
|
||
|
|
migration: cdesai_paragraphs
|
||
|
|
no_stub: true
|
||
|
|
source: page
|
||
|
|
-
|
||
|
|
plugin: extract
|
||
|
|
index:
|
||
|
|
- '0'
|
||
|
|
field_bundles/target_revision_id:
|
||
|
|
-
|
||
|
|
plugin: migration_lookup
|
||
|
|
migration: cdesai_paragraphs
|
||
|
|
no_stub: true
|
||
|
|
source: page
|
||
|
|
-
|
||
|
|
plugin: extract
|
||
|
|
index:
|
||
|
|
- '1'
|
||
|
|
|
||
|
|
destination:
|
||
|
|
plugin: 'entity_reference_revisions:paragraph'
|
||
|
|
default_bundle: row
|
||
|
|
|
||
|
|
# make sure these migration execute before running current migration
|
||
|
|
migration_dependencies:
|
||
|
|
required:
|
||
|
|
- cdesai_paragraphs
|
||
|
|
|
||
|
|
# use forced module dependency so uninstall/reinstall works properly
|
||
|
|
dependencies:
|
||
|
|
enforced:
|
||
|
|
module:
|
||
|
|
- cdesai_migrate
|