X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcomment%2Fmigrations%2Fd7_comment_type.yml;fp=web%2Fcore%2Fmodules%2Fcomment%2Fmigrations%2Fd7_comment_type.yml;h=ad34c4f48a84cbe2fba54e15c409046c8b514ff5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/modules/comment/migrations/d7_comment_type.yml b/web/core/modules/comment/migrations/d7_comment_type.yml new file mode 100644 index 000000000..ad34c4f48 --- /dev/null +++ b/web/core/modules/comment/migrations/d7_comment_type.yml @@ -0,0 +1,34 @@ +id: d7_comment_type +label: Comment type +migration_tags: + - Drupal 7 + - Configuration +source: + plugin: d7_node_type + constants: + entity_type: node + id_prefix: 'comment_node_' + label_suffix: 'comment' +process: + target_entity_type_id: 'constants/entity_type' + 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