d6_vocabulary_field_instance.yml 820 Bytes
Newer Older
1
id: d6_vocabulary_field_instance
2
label: Vocabulary field instance configuration
3
migration_tags:
4
  - Drupal 6
5
6
7
8
source:
  plugin: d6_taxonomy_vocabulary_per_type
  constants:
    entity_type: node
9
10
    auto_create: true
    selection_handler: 'default:taxonomy_term'
11
process:
12
  entity_type: 'constants/entity_type'
13
14
  bundle: type
  field_name:
15
16
17
18
19
20
21
    -
      plugin: migration
      migration: d6_taxonomy_vocabulary
      source: vid
    -
      plugin: skip_on_empty
      method: row
22
  label: name
23
  'settings/handler': 'constants/selection_handler'
24
  'settings/handler_settings/target_bundles/0': '@field_name'
25
  'settings/handler_settings/auto_create': 'constants/auto_create'
26
  required: required
27
destination:
28
  plugin: entity:field_config
29
migration_dependencies:
30
  required:
31
    - d6_node_type
32
    - d6_vocabulary_field