d6_taxonomy_term_localized_translation.yml 966 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
id: d6_taxonomy_term_localized_translation
label: Taxonomy localized term translations
migration_tags:
  - Drupal 6
  - Content
  - Multilingual
source:
  plugin: d6_term_localized_translation
  translations: true
process:
  # 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:
16
    plugin: migration_lookup
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
    migration: d6_taxonomy_vocabulary
    source: vid
  name:
    -
      plugin: callback
      source:
        - name_translated
        - name
      callable: array_filter
    -
      plugin: callback
      callable: current
  description:
    -
      plugin: callback
      source:
        - description_translated
        - description
      callable: array_filter
    -
      plugin: callback
      callable: current
destination:
  plugin: entity:taxonomy_term
  translations: true
migration_dependencies:
  required:
    - d6_taxonomy_term