Upgraded drupal core with security updates
[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   changed: timestamp
34 destination:
35   plugin: entity:taxonomy_term
36 migration_dependencies:
37   required:
38     - d7_taxonomy_vocabulary
39   optional:
40     - d7_field_instance