Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / contact / migrations / d7_contact_settings.yml
diff --git a/web/core/modules/contact/migrations/d7_contact_settings.yml b/web/core/modules/contact/migrations/d7_contact_settings.yml
new file mode 100644 (file)
index 0000000..2820646
--- /dev/null
@@ -0,0 +1,29 @@
+id: d7_contact_settings
+label: Contact configuration
+migration_tags:
+  - Drupal 7
+  - Configuration
+source:
+  plugin: contact_settings
+  variables:
+    - contact_default_status
+    - contact_threshold_limit
+process:
+  user_default_enabled: contact_default_status
+  'flood/limit': contact_threshold_limit
+  default_form:
+    plugin: migration_lookup
+    migration: contact_category
+    source: default_category
+destination:
+  plugin: config
+  config_name: contact.settings
+migration_dependencies:
+  required:
+    - contact_category
+dependencies:
+  config:
+    - migrate.migration.contact_category
+  module:
+    - contact
+    - migrate_drupal