Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / action / migrations / d6_action.yml
diff --git a/web/core/modules/action/migrations/d6_action.yml b/web/core/modules/action/migrations/d6_action.yml
new file mode 100644 (file)
index 0000000..6870e88
--- /dev/null
@@ -0,0 +1,46 @@
+id: d6_action
+label: Actions
+migration_tags:
+  - Drupal 6
+  - Configuration
+source:
+  plugin: action
+process:
+  id:
+    -
+      plugin: machine_name
+      source: aid
+  label: description
+  type: type
+  plugin:
+    -
+      plugin: static_map
+      source: callback
+      map:
+        system_goto_action: action_goto_action
+        system_send_email_action: action_send_email_action
+        system_message_action: action_message_action
+        user_block_ip_action: 0
+        imagecache_flush_action: 0
+        imagecache_generate_all_action: 0
+        imagecache_generate_action: 0
+        comment_publish_action: entity:publish_action:comment
+        comment_unpublish_action: entity:unpublish_action:comment
+        comment_save_action: entity:save_action:comment
+        node_publish_action: entity:publish_action:node
+        node_unpublish_action: entity:unpublish_action:node
+        node_save_action: entity:save_action:node
+      bypass: true
+    -
+      plugin: skip_on_empty
+      method: row
+  configuration:
+    -
+      plugin: default_value
+      source: parameters
+      default_value: "a:0:{}"
+    -
+      plugin: callback
+      callable: unserialize
+destination:
+  plugin: entity:action