Version 1
[yaffs-website] / web / core / modules / taxonomy / migration_templates / d6_vocabulary_field.yml
diff --git a/web/core/modules/taxonomy/migration_templates/d6_vocabulary_field.yml b/web/core/modules/taxonomy/migration_templates/d6_vocabulary_field.yml
new file mode 100644 (file)
index 0000000..082386f
--- /dev/null
@@ -0,0 +1,31 @@
+id: d6_vocabulary_field
+label: Vocabulary field configuration
+migration_tags:
+  - Drupal 6
+source:
+  plugin: d6_taxonomy_vocabulary
+  constants:
+    entity_type: node
+    type: entity_reference
+    target_entity_type: taxonomy_term
+process:
+  entity_type: 'constants/entity_type'
+  type: 'constants/type'
+  field_name:
+    -
+      plugin: migration_lookup
+      migration: d6_taxonomy_vocabulary
+      source: vid
+    -
+      plugin: skip_on_empty
+      method: row
+  'settings/target_type': 'constants/target_entity_type'
+  cardinality: cardinality
+destination:
+  plugin: entity:field_storage_config
+  dependencies:
+    module:
+      - entity_reference
+migration_dependencies:
+  required:
+    - d6_taxonomy_vocabulary