popsu_migrate: D7NodeTheme type de themes ok
This commit is contained in:
@@ -50,7 +50,14 @@ process:
|
||||
alt: alt
|
||||
title: title
|
||||
|
||||
field_type_de_theme:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_type_theme
|
||||
source: field_popsu_themtrans_type
|
||||
no_stub: true
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_allpublicfiles
|
||||
- d7_users
|
||||
- d7_taxonomy_term_type_theme
|
||||
|
@@ -0,0 +1,42 @@
|
||||
id: d7_taxonomy_term_type_theme
|
||||
label: Taxonomy terms Type de theme
|
||||
migration_group: popsu
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Popsu
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_taxoterm_typetheme
|
||||
bundle: popsu_themtrans
|
||||
|
||||
destination:
|
||||
plugin: entity:taxonomy_term
|
||||
|
||||
process:
|
||||
# If you are using this file to build a custom migration consider removing
|
||||
# the tid field to allow incremental migrations.
|
||||
# tid: tid
|
||||
vid:
|
||||
plugin: default_value
|
||||
default_value: types_de_theme
|
||||
name: name
|
||||
'description/value': description
|
||||
'description/format': format
|
||||
weight: weight
|
||||
# Only attempt to stub real (non-zero) parents.
|
||||
parent_id:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: parent
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_type_theme
|
||||
parent:
|
||||
plugin: default_value
|
||||
default_value: 0
|
||||
source: '@parent_id'
|
||||
changed: timestamp
|
Reference in New Issue
Block a user