Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / statistics / migrations / statistics_node_counter.yml
diff --git a/web/core/modules/statistics/migrations/statistics_node_counter.yml b/web/core/modules/statistics/migrations/statistics_node_counter.yml
new file mode 100644 (file)
index 0000000..748a4a8
--- /dev/null
@@ -0,0 +1,26 @@
+id: statistics_node_counter
+label: Node counter
+migration_tags:
+  - Drupal 6
+  - Drupal 7
+  - Content
+source:
+  plugin: node_counter
+process:
+  nid:
+    -
+      plugin: migration_lookup
+      migration: [d6_node, d7_node]
+      source: nid
+    -
+      plugin: skip_on_empty
+      method: row
+  totalcount: totalcount
+  daycount: daycount
+  timestamp: timestamp
+destination:
+  plugin: node_counter
+migration_dependencies:
+  optional:
+    - d6_node
+    - d7_node