d7_taxonomy_term.yml 1.01 KB
Newer Older
1 2
id: d7_taxonomy_term
label: Taxonomy terms
3
audit: true
4 5
migration_tags:
  - Drupal 7
6
  - Content
7
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
8
source:
9
  plugin: d7_taxonomy_term
10
process:
11 12
  # If you are using this file to build a custom migration consider removing
  # the tid field to allow incremental migrations.
13 14
  tid: tid
  vid:
15
    plugin: migration_lookup
16 17 18
    migration: d7_taxonomy_vocabulary
    source: vid
  name: name
19 20
  'description/value': description
  'description/format': format
21
  weight: weight
22 23 24 25 26 27 28
  # Only attempt to stub real (non-zero) parents.
  parent_id:
    -
      plugin: skip_on_empty
      method: process
      source: parent
    -
29
      plugin: migration_lookup
30
      migration: d7_taxonomy_term
31
  parent:
32 33 34
    plugin: default_value
    default_value: 0
    source: '@parent_id'
35
  forum_container: is_container
36
  changed: timestamp
37
  langcode: language
38 39 40 41 42
destination:
  plugin: entity:taxonomy_term
migration_dependencies:
  required:
    - d7_taxonomy_vocabulary
43 44
  optional:
    - d7_field_instance