id: upgrade_d7_taxonomy_term
class: Drupal\migrate\Plugin\Migration
migration_tags:
  - 'Drupal 7'
  - Content
  - taxonomy_term
  - tag1_content
label: 'Taxonomy terms'
source:
  key: migrate
  plugin: d7_taxonomy_term
  high_water_property:
    name: tid
    alias: td
process:
  tid:
    -
      plugin: get
      source: tid
  revision_id:
    -
      plugin: get
      source: tid
  vid:
    -
      plugin: static_map
      source: vid
      map:
        1: tags
        2: session_topics
  name:
    -
      plugin: get
      source: name
  description/value:
    -
      plugin: get
      source: description
  description/format:
    -
      plugin: get
      source: format
  weight:
    -
      plugin: get
      source: weight
  parent_id:
    -
      plugin: skip_on_empty
      method: process
      source: parent
    -
      plugin: migration_lookup
      migration:
        - upgrade_d7_taxonomy_term
  parent:
    -
      plugin: default_value
      default_value: 0
      source: '@parent_id'
  changed:
    -
      plugin: get
      source: timestamp
  langcode:
    -
      plugin: get
      source: language
destination:
  plugin: 'entity:taxonomy_term'
migration_dependencies:
  required: { }
  optional: { }
