Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manojbisht891/0aa11bd6abae9cb200f4421b13f5a1cd to your computer and use it in GitHub Desktop.
Save manojbisht891/0aa11bd6abae9cb200f4421b13f5a1cd to your computer and use it in GitHub Desktop.
migrate_plus.migration.upgrade_d7_taxonomy_term_translation_set.yml
langcode: en
status: true
dependencies: { }
id: upgrade_d7_taxonomy_term_translation_set
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Content
- Multilingual
migration_group: migrate_drupal_7
label: 'Taxonomy term translation set'
source:
plugin: d7_taxonomy_term_entity_translation_set
translations: true
process:
tid:
-
plugin: get
source: ttd2_tid
langcode:
-
plugin: get
source: language
vid:
-
plugin: migration_lookup
migration: upgrade_d7_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
field_metatag:
-
plugin: d7_metatag_entities
source: pseudo_metatag_entities
destination:
plugin: 'entity:taxonomy_term'
translations: true
migration_dependencies:
required: {}
optional: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment