X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcontent_translation%2Fmigrations%2Fd6_custom_block_translation.yml;fp=web%2Fcore%2Fmodules%2Fcontent_translation%2Fmigrations%2Fd6_custom_block_translation.yml;h=a240667b9435c7701ed9c3555010e14a54204e2a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website 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 index 000000000..a240667b9 --- /dev/null +++ b/web/core/modules/content_translation/migrations/d6_custom_block_translation.yml @@ -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