d7_taxonomy_term_translation.yml 1.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
id: d7_taxonomy_term_translation
label: Taxonomy terms
migration_tags:
  - Drupal 7
  - Content
  - Multilingual
source:
  plugin: d7_taxonomy_term_translation
  translations: true
process:
  skip:
    -
      plugin: static_map
      source: i18n_mode
      default_value: 0
      map:
        1: 0
        2: 2
        4: 4
    -
      plugin: skip_on_empty
      method: row
  # If you are using this file to build a custom migration consider removing
  # the tid field to allow incremental migrations.
  tid: tid
  langcode: language
  vid:
28
    plugin: migration_lookup
29 30 31 32 33 34 35 36 37 38 39 40 41
    migration: d7_taxonomy_vocabulary
    source: vid
  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
    -
42
      plugin: migration_lookup
43 44 45 46 47 48 49 50 51 52 53 54
      migration: d7_taxonomy_term
  parent:
    plugin: default_value
    default_value: 0
    source: '@parent_id'
  changed: timestamp
destination:
  plugin: entity:taxonomy_term
  destination_module: content_translation
migration_dependencies:
  required:
    - d7_taxonomy_term