Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / forum / migrations / d7_forum_settings.yml
diff --git a/web/core/modules/forum/migrations/d7_forum_settings.yml b/web/core/modules/forum/migrations/d7_forum_settings.yml
new file mode 100644 (file)
index 0000000..8618b4f
--- /dev/null
@@ -0,0 +1,31 @@
+id: d7_forum_settings
+label: Forum configuration
+migration_tags:
+  - Drupal 7
+  - Configuration
+source:
+  plugin: variable
+  variables:
+    - forum_hot_topic
+    - forum_per_page
+    - forum_order
+    - forum_block_num_active
+    - forum_block_num_new
+    - forum_nav_vocabulary
+  source_module: forum
+process:
+  'block/active/limit': forum_block_num_active
+  'block/new/limit': forum_block_num_new
+  'topics/hot_threshold': forum_hot_topic
+  'topics/page_limit': forum_per_page
+  'topics/order': forum_order
+  vocabulary:
+    plugin: migration_lookup
+    migration: d7_taxonomy_vocabulary
+    source: forum_nav_vocabulary
+destination:
+  plugin: config
+  config_name: forum.settings
+migration_dependencies:
+  required:
+    - d7_taxonomy_vocabulary