Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_translation / migrations / d6_custom_block_translation.yml
diff --git a/web/core/modules/content_translation/migrations/d6_custom_block_translation.yml b/web/core/modules/content_translation/migrations/d6_custom_block_translation.yml
new file mode 100644 (file)
index 0000000..a240667
--- /dev/null
@@ -0,0 +1,50 @@
+id: d6_custom_block_translation
+label: Custom block translations
+migration_tags:
+  - Drupal 6
+  - Content
+  - Multilingual
+source:
+  plugin: d6_box_translation
+process:
+  id:
+    plugin: migration_lookup
+    migration: d6_custom_block
+    source:
+      - bid
+  langcode: language
+  info:
+    -
+      plugin: callback
+      source:
+        - title_translated
+        - title
+      callable: array_filter
+    -
+      plugin: callback
+      callable: current
+  'body/value':
+    -
+      plugin: callback
+      source:
+        - body_translated
+        - body
+      callable: array_filter
+    -
+      plugin: callback
+      callable: current
+  'body/format':
+    plugin: migration_lookup
+    migration: d6_filter_format
+    source: format
+destination:
+  plugin: entity:block_content
+  no_stub: true
+  translations: true
+  destination_module: content_translation
+migration_dependencies:
+  required:
+    - d6_filter_format
+    - block_content_body_field
+    - d6_custom_block
+    - language