Skip to content

Instantly share code, notes, and snippets.

@chriscalip
Last active September 15, 2016 19:23
Show Gist options
  • Save chriscalip/042105202dcdc9f758587c854e3f16c0 to your computer and use it in GitHub Desktop.
Save chriscalip/042105202dcdc9f758587c854e3f16c0 to your computer and use it in GitHub Desktop.
langcode: en
status: true
dependencies: { }
id: taxonomy_term
migration_group: carlyle
label: 'Taxonomy terms'
source:
plugin: d7_taxonomy_term
process:
tid: tid
vid:
plugin: migration
migration: taxonomy_vocabulary
source: vid
name: name
'description/value': description
'description/format': format
weight: weight
parent_id:
-
plugin: skip_on_empty
method: process
source: parent
-
plugin: migration
migration: taxonomy_term
parent:
plugin: default_value
default_value: 0
source: '@parent_id'
changed: timestamp
# select_list
field_category_level: field_cap_category_level
# image
field_status_icon: field_status_icon
# entityreference node_page
field_tester: field_tester
destination:
plugin: 'entity:taxonomy_term'
migration_dependencies:
required:
- taxonomy_vocabulary
optional:
- node_page
- file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment