X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fmigration_templates%2Fd7_comment_type.yml;h=d54ca09dbdeb54b087bb6ce75cbb42f161c9e83a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=090bfdde29408ff54d0dc01fd7640f48bdd03a99;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/comment/migration_templates/d7_comment_type.yml b/web/core/modules/comment/migration_templates/d7_comment_type.yml index 090bfdde2..d54ca09db 100644 --- a/web/core/modules/comment/migration_templates/d7_comment_type.yml +++ b/web/core/modules/comment/migration_templates/d7_comment_type.yml @@ -3,15 +3,31 @@ label: Comment type migration_tags: - Drupal 7 source: - plugin: d7_comment_type + plugin: d7_node_type constants: entity_type: node + id_prefix: 'comment_node_' + label_suffix: 'comment' process: target_entity_type_id: 'constants/entity_type' - id: bundle - label: label + id: + - + plugin: concat + source: + - 'constants/id_prefix' + - type + - + plugin: static_map + bypass: true + # The Forum module provides its own comment type (comment_forum), which we + # want to reuse if it exists. + map: + comment_node_forum: comment_forum + label: + plugin: concat + source: + - name + - 'constants/label_suffix' + delimiter: ' ' destination: plugin: entity:comment_type -migration_dependencies: - required: - - d7_node_type