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