Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / filter / migrations / d7_filter_format.yml
diff --git a/web/core/modules/filter/migrations/d7_filter_format.yml b/web/core/modules/filter/migrations/d7_filter_format.yml
new file mode 100644 (file)
index 0000000..b749120
--- /dev/null
@@ -0,0 +1,37 @@
+id: d7_filter_format
+label: Filter format configuration
+migration_tags:
+  - Drupal 7
+  - Configuration
+source:
+  plugin: d7_filter_format
+process:
+  format: format
+  name: name
+  cache: cache
+  weight: weight
+  filters:
+    plugin: sub_process
+    source: filters
+    key: '@id'
+    process:
+      id:
+        # If the filter ID cannot be mapped, it will pass through unmodified
+        # because the bypass flag is set. When the user actually tries to
+        # view text through an invalid filter plugin, the filter system will
+        # fall back to filter_null and display a helpful error message.
+        plugin: filter_id
+        bypass: true
+        source: name
+        # No need to map anything -- filter plugin IDs haven't changed since
+        # Drupal 7.
+        map: { }
+      settings:
+        plugin: filter_settings
+        source: settings
+      status:
+        plugin: default_value
+        default_value: true
+      weight: weight
+destination:
+  plugin: entity:filter_format