Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / file / migrations / d6_upload_entity_form_display.yml
diff --git a/web/core/modules/file/migrations/d6_upload_entity_form_display.yml b/web/core/modules/file/migrations/d6_upload_entity_form_display.yml
new file mode 100644 (file)
index 0000000..8e08f3b
--- /dev/null
@@ -0,0 +1,36 @@
+id: d6_upload_entity_form_display
+label: Upload form display configuration
+migration_tags:
+  - Drupal 6
+  - Configuration
+source:
+  plugin: d6_upload_instance
+  constants:
+    empty: {}
+    entity_type: node
+    form_mode: default
+    name: upload
+    type: file_generic
+    options:
+      settings:
+        progress_indicator: throbber
+process:
+  entity_type: 'constants/entity_type'
+  bundle:
+    -
+      plugin: migration_lookup
+      migration: d6_node_type
+      source: node_type
+    -
+      plugin: skip_on_empty
+      method: row
+  field_name: 'constants/name'
+  form_mode: 'constants/form_mode'
+  type: 'constants/type'
+  options: 'constants/options'
+  'options/type': '@type'
+destination:
+  plugin: component_entity_form_display
+migration_dependencies:
+  required:
+    - d6_upload_field_instance