X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffield%2Fmigration_templates%2Fd7_field_instance_widget_settings.yml;fp=web%2Fcore%2Fmodules%2Ffield%2Fmigration_templates%2Fd7_field_instance_widget_settings.yml;h=ac281e17078ab84e9f64a971b2a760054a098efa;hp=e2bbcf4496d8490af72a064c0136c380d86b8313;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/field/migration_templates/d7_field_instance_widget_settings.yml b/web/core/modules/field/migration_templates/d7_field_instance_widget_settings.yml index e2bbcf449..ac281e170 100644 --- a/web/core/modules/field/migration_templates/d7_field_instance_widget_settings.yml +++ b/web/core/modules/field/migration_templates/d7_field_instance_widget_settings.yml @@ -2,8 +2,8 @@ id: d7_field_instance_widget_settings label: Field instance widget configuration migration_tags: - Drupal 7 -class: Drupal\migrate_drupal\Plugin\migrate\CckMigration -cck_plugin_method: processFieldWidget +class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration +field_plugin_method: processFieldWidget source: plugin: d7_field_instance_per_form_display constants: @@ -26,16 +26,28 @@ process: - plugin: skip_on_empty method: row - bundle: bundle + # The bundle needs to be statically mapped in order to support comment types + # that might already exist before this migration is run. See + # d7_comment_type.yml for more information. + bundle: + plugin: static_map + source: bundle + bypass: true + map: + comment_node_forum: comment_forum form_mode: 'constants/form_mode' field_name: field_name entity_type: entity_type 'options/weight': 'widget/weight' + widget_type: + plugin: process_field + source: type + method: getFieldWidgetType 'options/type': type: plugin: static_map bypass: true - source: 'widget/type' + source: '@widget_type' map: link_field: link_default email_textfield: email_default @@ -52,7 +64,7 @@ process: plugin: field_instance_widget_settings source: - 'widget/type' - - widget_settings + - 'widget/settings' 'options/third_party_settings': 'constants/third_party_settings' destination: plugin: component_entity_form_display