Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / taxonomy / migrations / d6_taxonomy_term.yml
1 id: d6_taxonomy_term
2 label: Taxonomy terms
3 audit: true
4 migration_tags:
5   - Drupal 6
6   - Content
7 source:
8   plugin: d6_taxonomy_term
9 process:
10   # If you are using this file to build a custom migration consider removing
11   # the tid field to allow incremental migrations.
12   tid: tid
13   vid:
14     plugin: migration_lookup
15     migration: d6_taxonomy_vocabulary
16     source: vid
17   name: name
18   description: description
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: d6_taxonomy_term
29   parent:
30     plugin: default_value
31     default_value: 0
32     source: '@parent_id'
33   changed: timestamp
34 destination:
35   plugin: entity:taxonomy_term
36 migration_dependencies:
37   required:
38     - d6_taxonomy_vocabulary