first draft of flaglist migrate, completly screwed up
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# This is the migrations file from Flag Lists D7
|
||||
id: d7_flaglistitems
|
||||
label: Materio Flag List Items D7
|
||||
migration_group: d7_materio
|
||||
#audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_flaglists
|
||||
- d7_users
|
||||
- d7_node_article
|
||||
- d7_node_materiau
|
||||
source:
|
||||
plugin: d7_flaglistitems_materio
|
||||
#
|
||||
process:
|
||||
id: fcid
|
||||
# user_id: uid
|
||||
user_id:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
name:
|
||||
plugin: concat
|
||||
source:
|
||||
- title
|
||||
- entity_id
|
||||
delimiter: ' '
|
||||
baseflag: relatedflag
|
||||
flag_list: fid
|
||||
# entity_id: entity_id
|
||||
entity_id:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: linked_materials
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_node_materiau
|
||||
no_stub: true
|
||||
|
||||
# type: entity_type
|
||||
#
|
||||
destination:
|
||||
plugin: entity:flag_list_item
|
@@ -0,0 +1,45 @@
|
||||
# This is the migrations file from Flag Lists D7
|
||||
id: d7_flaglists
|
||||
label: 'Materio Flagging Collections D7'
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- materio
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_users
|
||||
- d7_node_article
|
||||
- d7_node_materiau
|
||||
source:
|
||||
plugin: d7_flaglists_materio
|
||||
# key: migrate
|
||||
#
|
||||
process:
|
||||
id: fid
|
||||
vid: fid
|
||||
langcode:
|
||||
plugin: default_value
|
||||
default_value: en
|
||||
# needs migration_lookup
|
||||
# user_id: uid
|
||||
user_id:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
name: title
|
||||
# Shall be name from flag
|
||||
# templateflag: name
|
||||
# relatedflag: name
|
||||
templateflag:
|
||||
plugin: default_value
|
||||
default_value: dossier
|
||||
relatedflag:
|
||||
plugin: default_value
|
||||
default_value: dossier
|
||||
#
|
||||
destination:
|
||||
plugin: entity:flagging_collection
|
||||
default_bundle: dossier
|
Reference in New Issue
Block a user