diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_action_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_action_settings.yml index d9da486..aa2394d 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_action_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_action_settings.yml @@ -1,4 +1,5 @@ id: d6_action_settings +label: Drupal 6 action configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_feed.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_feed.yml new file mode 100644 index 0000000..d7366ea --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_feed.yml @@ -0,0 +1,20 @@ +id: d6_aggregator_feed +label: Drupal 6 aggregator feeds + +source: + plugin: d6_aggregator_feed + +process: + fid: fid + title: title + url: url + refresh: refresh + checked: checked + link: link + description: description + image: image + etag: etag + modified: modified + +destination: + plugin: entity:aggregator_feed diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_item.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_item.yml new file mode 100644 index 0000000..2147872 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_item.yml @@ -0,0 +1,21 @@ +id: d6_aggregator_item +label: Drupal 6 aggregator items +source: + plugin: d6_aggregator_item +process: + iid: iid + fid: + plugin: migration + migration: d6_aggregator_feed + source: + - fid + title: title + link: link + author: author + description: description + timestamp: timestamp + guid: guid +destination: + plugin: entity:aggregator_item +migration_dependencies: + - d6_aggregator_feed diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_settings.yml index a5f99be..1240261 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_aggregator_settings.yml @@ -1,4 +1,5 @@ id: d6_aggregator_settings +label: Drupal 6 aggregator configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_block.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_block.yml new file mode 100644 index 0000000..1a9db7a --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_block.yml @@ -0,0 +1,61 @@ +id: d6_block +label: Drupal 6 blocks +source: + plugin: d6_block +process: + id: + # We need something unique, so aggregator, aggregator_1 etc will do. + plugin: dedupe_entity + entity_type: block + field: id + postfix: _ + source: module + plugin: + - + plugin: static_map + bypass: true + source: + - module + - delta + map: + book: + 0: book_navigation + comment: + 0: views_block:comments_recent-block_1 + forum: + 0: forum_active_block + 1: forum_new_block + locale: + 0: language_block + node: + 0: node_syndicate_block + search: + 0: search_form_block + statistics: + 0: statistics_popular_block + system: + 0: system_powered_by_block + user: + 0: user_login_block + 1: system_menu_block:tools + 2: views_block:who_s_new-block_1 + 3: views_block:who_s_online-who_s_online_block + - + plugin: d6_block_plugin_id + region: region + theme: theme + label: title + 'visibility.path.visibility': visibility + 'visibility.path.pages': pages + 'visibility.role.roles': roles + weight: weight + settings: + plugin: d6_block_settings + source: + - @plugin + - delta + - settings +destination: + plugin: entity:block +migration_dependencies: + - d6_menu: false diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_book.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_book.yml new file mode 100644 index 0000000..b746186 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_book.yml @@ -0,0 +1,19 @@ +id: d6_book +label: Drupal 6 books +source: + plugin: d6_book +process: + nid: nid + book.bid: bid + book.weight: weight + book.pid: + - + plugin: skip_process_on_empty + source: plid + - + plugin: migration + migration: d6_book +destination: + plugin: book +migration_dependencies: + - d6_node diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_book_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_book_settings.yml index 9e1097f..0da3a45 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_book_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_book_settings.yml @@ -1,4 +1,5 @@ id: d6_book_settings +label: Drupal 6 book configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_revision.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_revision.yml new file mode 100644 index 0000000..d165707 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_revision.yml @@ -0,0 +1,14 @@ +id: d6_cck_field_revision +label: Drupal 6 field revisions +load: + plugin: drupal_entity + bundle_migration: d6_node_type +source: + plugin: d6_cck_field_revision +process: + vid: vid +destination: + plugin: entity_revision:node +migration_dependencies: + - d6_cck_field_values + - d6_node_revision diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_values.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_values.yml new file mode 100644 index 0000000..3df7ead --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_cck_field_values.yml @@ -0,0 +1,18 @@ +id: d6_cck_field_values +label: Drupal 6 field values +load: + plugin: drupal_entity + bundle_migration: d6_node_type +source: + plugin: d6_cck_field_values +process: + nid: + plugin: migration + migration: d6_node + source: nid +destination: + plugin: entity:node +migration_dependencies: + - d6_node + - d6_field_formatter_settings + - d6_field_instance_widget_settings diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_comment.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_comment.yml new file mode 100644 index 0000000..a9fe824 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_comment.yml @@ -0,0 +1,51 @@ +id: d6_comment +label: Drupal 6 comments +source: + plugin: d6_comment + constants: + field_id: node__comment + entity_type: node +process: + cid: cid + pid: + - + plugin: skip_process_on_empty + source: pid + - + plugin: migration + migration: d6_comment + entity_id: + plugin: migration + migration: d6_node + source: nid + entity_type: constants.entity_type + field_id: constants.field_id + subject: subject + uid: + - + plugin: skip_process_on_empty + source: uid + - + plugin: migration + migration: d6_user + name: name + mail: mail + homepage: homepage + hostname: hostname + created: timestamp + changed: timestamp + status: status #In D6, published=0. We reverse the value in prepareRow. + thread: thread + 'comment_body.value': comment + 'comment_body.format': + plugin: migration + migration: d6_filter_format + source: format +destination: + plugin: entity:comment +migration_dependencies: + - d6_node + - d6_user + - d6_comment_entity_display + - d6_comment_entity_form_display + - d6_filter_format diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_display.yml new file mode 100644 index 0000000..49e6405 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_display.yml @@ -0,0 +1,23 @@ +id: d6_comment_entity_display +label: Drupal 6 comment display configuration +source: + plugin: d6_comment_variable + constants: + entity_type: node + field_name: comment + view_mode: default + options: + label: hidden + type: comment_default + weight: 20 +process: + entity_type: constants.entity_type + field_name: constants.field_name + view_mode: constants.view_mode + options: constants.options + + bundle: node_type +destination: + plugin: component_entity_display +migration_dependencies: + - d6_comment_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_form_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_form_display.yml new file mode 100644 index 0000000..4577104 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_entity_form_display.yml @@ -0,0 +1,22 @@ +id: d6_comment_entity_form_display +label: Drupal 6 comment form display configuration +source: + plugin: d6_comment_variable + constants: + entity_type: node + field_name: comment + form_mode: default + options: + type: comment_default + weight: 20 +process: + entity_type: constants.entity_type + field_name: constants.field_name + form_mode: constants.form_mode + options: constants.options + + bundle: node_type +destination: + plugin: component_entity_form_display +migration_dependencies: + - d6_comment_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field.yml new file mode 100644 index 0000000..5c4dd3b --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field.yml @@ -0,0 +1,16 @@ +id: d6_comment_field +label: Drupal 6 comment field configuration +source: + plugin: d6_comment_variable + constants: + entity_type: node + type: comment + id: node.comment + name: comment +process: + entity_type: constants.entity_type + id: constants.id + name: constants.name + type: constants.type +destination: + plugin: entity:field_config diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field_instance.yml new file mode 100644 index 0000000..a3f9612 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_comment_field_instance.yml @@ -0,0 +1,28 @@ +id: d6_comment_field_instance +label: Drupal 6 comment field instance configuration +source: + plugin: d6_comment_variable + constants: + entity_type: node + field_name: comment + label: Comment settings + required: true +process: + entity_type: constants.entity_type + field_name: constants.field_name + label: constants.label + required: constants.required + + bundle: node_type + 'default_value.0.status': comment + 'settings.default_mode': comment_default_mode + 'settings.per_page': comment_default_per_page + 'settings.anonymous': comment_anonymous + 'settings.subject': comment_subject_field + 'settings.form_location': comment_form_location + 'settings.preview': comment_preview +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_comment_field + - d6_node_type diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_contact_category.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_contact_category.yml new file mode 100644 index 0000000..f4e8a39 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_contact_category.yml @@ -0,0 +1,22 @@ +id: d6_contact_category +label: Drupal 6 contact category configuration + +source: + plugin: d6_contact_category + +process: + id: + - + plugin: machine_name + source: category + - + plugin: dedupe_entity + entity_type: user_role + field: cid + label: category + recipients: recipients + reply: reply + weight: weight + +destination: + plugin: entity:contact_category diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_contact_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_contact_settings.yml index 823944d..08a9dae 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_contact_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_contact_settings.yml @@ -1,4 +1,5 @@ id: d6_contact_settings +label: Drupal 6 contact configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_custom_block.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_custom_block.yml new file mode 100644 index 0000000..8efb510 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_custom_block.yml @@ -0,0 +1,19 @@ +id: d6_custom_block +label: Drupal 6 custom blocks +source: + plugin: d6_box + constants: + type: basic +process: + id: bid + type: constants.type + info: info + 'body.format': + plugin: migration + migration: d6_filter_format + source: format + 'body.value': body +destination: + plugin: entity:custom_block +migration_dependencies: + - d6_filter_format diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_date_formats.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_date_formats.yml new file mode 100644 index 0000000..734149b --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_date_formats.yml @@ -0,0 +1,19 @@ +id: d6_date_formats +label: Drupal 6 date format configuration +source: + plugin: variable_multirow + variables: + - date_format_long + - date_format_medium + - date_format_short +process: + id: + plugin: static_map + source: name + map: + date_format_long: long + date_format_short: short + date_format_medium: medium + 'pattern.php': value +destination: + plugin: entity:date_format diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_dblog_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_dblog_settings.yml index b998cd6..c4710d5 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_dblog_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_dblog_settings.yml @@ -1,4 +1,5 @@ id: d6_dblog_settings +label: Drupal 6 database logging configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_field.yml new file mode 100644 index 0000000..cb8f5d3 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_field.yml @@ -0,0 +1,83 @@ +id: d6_field +label: Drupal 6 field configuration +source: + plugin: d6_field + constants: + entity_type: node + langcode: und +process: + entity_type: constants.entity_type + status: active + langcode: constants.langcode + name: field_name + type: + - + plugin: static_map + bypass: true + source: + - type + map: + number_integer: integer + number_decimal: decimal + number_float: float + text: text + email: email + link: link + date: datetime + datestamp: datetime + datetime: datetime + fr_phone: telephone + be_phone: telephone + it_phone: telephone + el_phone: telephone + ch_phone: telephone + ca_phone: telephone + cr_phone: telephone + pa_phone: telephone + gb_phone: telephone + ru_phone: telephone + ua_phone: telephone + es_phone: telephone + au_phone: telephone + cs_phone: telephone + hu_phone: telephone + pl_phone: telephone + nl_phone: telephone + se_phone: telephone + za_phone: telephone + il_phone: telephone + nz_phone: telephone + br_phone: telephone + cl_phone: telephone + cn_phone: telephone + hk_phone: telephone + mo_phone: telephone + ph_phone: telephone + sg_phone: telephone + jo_phone: telephone + eg_phone: telephone + pk_phone: telephone + int_phone: telephone + - + plugin: file_image_handler + cardinality: + plugin: static_map + bypass: true + source: multiple + map: + 0: 1 + 1: -1 + settings: + plugin: field_settings + source: + - @type + - global_settings + - widget_settings + +destination: + plugin: entity:field_config +migration_dependencies: + # It is not possible to make this a requirement as d6_field_settings has no + # source id. However it also has no requirements so it will always run so a + # dependency is enough. + - d6_field_settings: false diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_field_formatter_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_field_formatter_settings.yml new file mode 100644 index 0000000..d41bc0a --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_field_formatter_settings.yml @@ -0,0 +1,298 @@ +id: d6_field_formatter_settings +label: Drupal 6 field formatter configuration +source: + plugin: d6_field_instance_per_view_mode + constants: + entity_type: node + +process: + # We skip field types that don't exist because they weren't migrated by the + # field migration. + field_type_exists: + - + plugin: migration + migration: d6_field + source: + - field_name + - + plugin: extract + index: + - 1 + - + plugin: skip_row_on_empty + entity_type: constants.entity_type + bundle: type_name + view_mode: + - + plugin: migration + migration: d6_view_modes + source: + - view_mode + - + plugin: extract + index: + - 1 + field_name: field_name + "options.label": label + "options.weight": weight + "options.type": + - + plugin: static_map + bypass: true + source: + - type + - "display_settings.format" + map: + text: + default: text_default + trimmed: text_trimmed + number_integer: + default: number_integer + us_0: number_integer + be_0: number_integer + fr_0: number_integer + unformatted: number_unformatted + number_float: + default: number_decimal + us_0: number_decimal + us_1: number_decimal + us_2: number_decimal + be_0: number_decimal + be_1: number_decimal + be_2: number_decimal + fr_0: number_decimal + fr_1: number_decimal + fr_2: number_decimal + unformatted: number_unformatted + number_decimal: + default: number_decimal + us_0: number_decimal + us_1: number_decimal + us_2: number_decimal + be_0: number_decimal + be_1: number_decimal + be_2: number_decimal + fr_0: number_decimal + fr_1: number_decimal + fr_2: number_decimal + unformatted: number_unformatted + email: + default: email_mailto + spamspan: email_mailto + contact: email_mailto + plain: string + link: + default: link + plain: link + absolute: link + title_plain: link + url: link + short: link + label: link + separate: link_separate + filefield: + default: file_default + url_plain: file_url_plain + path_plain: file_url_plan #unsure about this? + image_plain: image + image_nodelink: image + image_imagelink: image + fr_phone: + default: string + be_phone: + default: string + it_phone: + default: string + el_phone: + default: string + ch_phone: + default: string + ca_phone: + default: string + cr_phone: + default: string + pa_phone: + default: string + gb_phone: + default: string + ru_phone: + default: string + ua_phone: + default: string + es_phone: + default: string + au_phone: + default: string + cs_phone: + default: string + hu_phone: + default: string + pl_phone: + default: string + nl_phone: + default: string + se_phone: + default: string + za_phone: + default: string + il_phone: + default: string + nz_phone: + default: string + br_phone: + default: string + cl_phone: + default: string + cn_phone: + default: string + hk_phone: + default: string + mo_phone: + default: string + ph_phone: + default: string + sg_phone: + default: string + jo_phone: + default: string + eg_phone: + default: string + pk_phone: + default: string + int_phone: + default: string + - + plugin: field_type_defaults + "options.settings": + - + plugin: static_map + bypass: true + source: + - module + - "display_settings.format" + map: + number: + us_0: + scale: 0 + decimal_separator: . + thousand_separator: ',' + prefix_suffix: true + us_1: + scale: 1 + decimal_separator: . + thousand_separator: ',' + prefix_suffix: true + us_2: + scale: 2 + decimal_separator: . + thousand_separator: ',' + prefix_suffix: true + be_0: + scale: 0 + decimal_separator: ',' + thousand_separator: . + prefix_suffix: true + be_1: + scale: 1 + decimal_separator: ',' + thousand_separator: . + prefix_suffix: true + be_2: + scale: 2 + decimal_separator: ',' + thousand_separator: . + prefix_suffix: true + fr_0: + scale: 0 + decimal_separator: ',' + thousand_separator: ' ' + prefix_suffix: true + fr_1: + scale: 1 + decimal_separator: ',' + thousand_separator: ' ' + prefix_suffix: true + fr_2: + scale: 2 + decimal_separator: ',' + thousand_separator: ' ' + prefix_suffix: true + link: + default: + trim_length: '80' + url_only: 0 + url_plain: 0 + rel: 0 + target: 0 + plain: + trim_length: '80' + url_only: 1 + url_plain: 1 + rel: 0 + target: 0 + absolute: + trim_length: '80' + url_only: 1 + url_plain: 1 + rel: 0 + target: 0 + title_plain: #can't support title as plain text. + trim_length: '80' + url_only: 1 + url_plain: 1 + rel: 0 + target: 0 + url: + trim_length: '80' + url_only: 1 + url_plain: 0 + rel: 0 + target: 0 + short: #can't support hardcoded link text? + trim_length: '80' + url_only: 0 + url_plain: 0 + rel: 0 + target: 0 + label: # can't support label as link text? + trim_length: '80' + url_only: 0 + url_plain: 0 + rel: 0 + target: 0 + separate: + trim_length: '80' + rel: 0 + target: 0 + filefield: + image_plain: + image_style: '' + image_link: '' + image_nodelink: + image_style: '' + image_link: content + image_imagelink: + image_style: '' + image_link: file + date: + default: + format_type: fallback + format_interval: + format_type: fallback + long: + format_type: long + medium: + format_type: medium + short: + format_type: short + text: + trimmed: + trim_length: 600 + - + plugin: field_formatter_settings_defaults + +destination: + plugin: component_entity_display +migration_dependencies: + - d6_field_instance + - d6_view_modes diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance.yml new file mode 100644 index 0000000..4bda931 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance.yml @@ -0,0 +1,48 @@ +id: d6_field_instance +label: Drupal 6 field instance configuration +source: + plugin: d6_field_instance + constants: + entity_type: node + +process: + # We skip field types that don't exist because they weren't migrated by the + # field migration. + field_type_exists: + - + plugin: migration + migration: d6_field + source: + - field_name + - + plugin: extract + index: + - 1 + - + plugin: skip_row_on_empty + entity_type: constants.entity_type + field_name: field_name + bundle: type_name + label: label + description: description + required: required + status: active + settings: + plugin: d6_field_instance_settings + source: + - widget_type + - widget_settings + - global_settings + + default_value_function: '' + default_value: + plugin: d6_field_instance_defaults + source: + - widget_type + - widget_settings + +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_node_type + - d6_field diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance_widget_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance_widget_settings.yml new file mode 100644 index 0000000..aab0a70 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_field_instance_widget_settings.yml @@ -0,0 +1,57 @@ +id: d6_field_instance_widget_settings +label: Drupal 6 field instance widget configuration +source: + plugin: d6_field_instance_per_form_display + constants: + entity_type: node + form_mode: default + +process: + # We skip field types that don't exist because they weren't migrated by the + # field migration. + field_type_exists: + - + plugin: migration + migration: d6_field + source: + - field_name + - + plugin: extract + index: + - 1 + - + plugin: skip_row_on_empty + bundle: type_name + form_mode: constants.form_mode + field_name: field_name + entity_type: constants.entity_type + "options.weight": weight + "options.type": + type: + plugin: static_map + bypass: true + source: widget_type + map: + text_textfield: text_textfield + number: number + link: link_default + email_textfield: email_default + date_select: datetime_default + date_text: datetime_default + filefield_widget: file_generic + imagefield_widget: image_image + phone_textfield: telephone_default + optionwidgets_onoff: options_onoff + optionwidgets_buttons: options_buttons + optionwidgets_select: options_select + "options.settings": + - + plugin: field_instance_widget_settings + source: + - widget_type + - widget_settings + +destination: + plugin: component_entity_form_display +migration_dependencies: + - d6_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_field_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_field_settings.yml index 902e155..a2b42d4 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_field_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_field_settings.yml @@ -1,4 +1,5 @@ id: d6_field_settings +label: Drupal 6 global field configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_file.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_file.yml new file mode 100644 index 0000000..cc39a89 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_file.yml @@ -0,0 +1,19 @@ +id: d6_file +label: Drupal 6 files +source: + plugin: d6_file +process: + fid: fid + filename: filename + uri: + plugin: file_uri + source: + - filepath + - file_directory_path + - is_public + filemime: filemime + filesize: filesize + status: status + changed: timestamp +destination: + plugin: entity:file diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_file_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_file_settings.yml index a088b6c..0b7522e 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_file_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_file_settings.yml @@ -1,4 +1,5 @@ id: d6_file_settings +label: Drupal 6 file configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_filter_format.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_filter_format.yml index 99653b7..dcace44 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_filter_format.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_filter_format.yml @@ -1,4 +1,5 @@ id: d6_filter_format +label: Drupal 6 filter format configuration source: plugin: d6_filter_format process: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_forum_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_forum_settings.yml index 8ed1bd2..b46cca5 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_forum_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_forum_settings.yml @@ -1,4 +1,5 @@ id: d6_forum_settings +label: Drupal 6 forum configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_locale_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_locale_settings.yml index 972aaff..f0a4828 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_locale_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_locale_settings.yml @@ -1,4 +1,5 @@ id: d6_locale_settings +label: Drupal 6 locale configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_menu.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_menu.yml new file mode 100644 index 0000000..e6f534a --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_menu.yml @@ -0,0 +1,10 @@ +id: d6_menu +label: Drupal 6 menus +source: + plugin: d6_menu +process: + id: menu_name + label: title + description: description +destination: + plugin: entity:menu diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_menu_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_menu_settings.yml index 8b03bbe..2f9ee60 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_menu_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_menu_settings.yml @@ -1,4 +1,5 @@ id: d6_menu_settings +label: Drupal 6 menu configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_node.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_node.yml new file mode 100644 index 0000000..6ace5da --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_node.yml @@ -0,0 +1,36 @@ +id: d6_node +label: Drupal 6 nodes +source: + plugin: d6_node +process: + nid: nid + vid: vid + type: type + langcode: language + title: title + uid: uid + status: status + created: created + changed: changed + promote: promote + sticky: sticky + body.format: + plugin: migration + migration: d6_filter_format + source: format + body.value: body + +# unmapped d6 fields. +# tnid +# translate +# moderate +# comment + +destination: + plugin: entity:node +migration_dependencies: + - d6_node_type + - d6_filter_format + - d6_field_instance_widget_settings: false + - d6_field_formatter_settings: false + - d6_node_settings: false diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_node_revision.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_node_revision.yml new file mode 100644 index 0000000..c4d4807 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_node_revision.yml @@ -0,0 +1,32 @@ +id: d6_node_revision +label: Drupal 6 node revisions +source: + plugin: d6_node_revision +process: + nid: nid + vid: vid + type: type + langcode: language + title: title + uid: uid + status: status + created: created + changed: changed + promote: promote + sticky: sticky + body.format: + plugin: migration + migration: d6_filter_format + source: format + body.value: body + +# unmapped d6 fields. +# tnid +# translate +# moderate +# comment + +destination: + plugin: entity_revision:node +migration_dependencies: + - d6_node diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_node_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_node_settings.yml index 27e89b1..372371c 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_node_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_node_settings.yml @@ -1,4 +1,5 @@ id: d6_node_settings +label: Drupal 6 node configuration source: plugin: variable variables: @@ -8,5 +9,5 @@ process: destination: plugin: config config_name: node.settings -dependencies: +migration_dependencies: - d6_node_type diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_node_type.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_node_type.yml new file mode 100644 index 0000000..ce4e9e8 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_node_type.yml @@ -0,0 +1,21 @@ +id: d6_node_type +label: Drupal 6 node type configuration +source: + plugin: d6_node_type + constants: + preview: 1 # DRUPAL_OPTIONAL + create_body: false +process: + type: type + name: name + module: module + description: description + help: help + has_title: has_title + title_label: title_label + preview: constants.preview + submitted: submitted + options: options + create_body: has_body +destination: + plugin: entity:node_type diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_profile_values.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_profile_values.yml new file mode 100644 index 0000000..4f5f1a2 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_profile_values.yml @@ -0,0 +1,18 @@ +id: d6_profile_values +label: Drupal 6 profile values +source: + plugin: d6_profile_field_values +load: + plugin: drupal_entity +process: + uid: + plugin: migration + migration: d6_user + source: uid +destination: + plugin: entity:user +migration_dependencies: + - d6_user + - d6_user_profile_field_instance + - d6_user_profile_entity_display + - d6_user_profile_entity_form_display diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_search_page.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_search_page.yml new file mode 100644 index 0000000..87e1805 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_search_page.yml @@ -0,0 +1,23 @@ +id: d6_search_page +label: Drupal 6 search page configuration +source: + plugin: variable + variables: + - node_rank_comments + - node_rank_promote + - node_rank_recent + - node_rank_relevance + - node_rank_sticky + - node_rank_views + constants: + id: node_search + path: node + plugin: node_search +process: + id: constants.id + path: constants.path + plugin: constants.plugin + configuration.rankings: + plugin: d6_search_configuration_rankings +destination: + plugin: entity:search_page diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_search_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_search_settings.yml index b5c94b4..c86bd68 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_search_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_search_settings.yml @@ -1,4 +1,5 @@ id: d6_search_settings +label: Drupal 6 search configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_simpletest_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_simpletest_settings.yml index f9cd2bb..30b85d9 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_simpletest_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_simpletest_settings.yml @@ -1,4 +1,5 @@ id: d6_simpletest_settings +label: Drupal 6 simpletest configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_statistics_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_statistics_settings.yml index e20849b..9cc1b9c 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_statistics_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_statistics_settings.yml @@ -1,4 +1,5 @@ id: d6_statistics_settings +label: Drupal 6 statistics configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_syslog_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_syslog_settings.yml index 47c3072..50ca4e1 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_syslog_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_syslog_settings.yml @@ -1,4 +1,5 @@ id: d6_syslog_settings +label: Drupal 6 system log configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_cron.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_cron.yml index 73a8b34..1807732 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_cron.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_cron.yml @@ -1,4 +1,5 @@ id: d6_system_cron +label: Drupal 6 cron settings source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_file.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_file.yml index 3c7cd3a..3fdb86f 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_file.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_file.yml @@ -1,4 +1,5 @@ id: d6_system_file +label: Drupal 6 file system configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_filter.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_filter.yml index 2ca5770..b34bea7 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_filter.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_filter.yml @@ -1,4 +1,5 @@ id: d6_system_filter +label: Drupal 6 filter configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_image.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_image.yml index d7caf6a..3aede2f 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_image.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_image.yml @@ -1,4 +1,5 @@ id: d6_system_image +label: Drupal 6 image toolkit configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_image_gd.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_image_gd.yml index f5bebe5..3d62fe8 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_image_gd.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_image_gd.yml @@ -1,4 +1,5 @@ id: d6_system_image_gd +label: Drupal 6 image quality configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_maintenance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_maintenance.yml index 46e7708..ec8941f 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_maintenance.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_maintenance.yml @@ -1,4 +1,5 @@ id: d6_system_maintenance +label: Drupal 6 maintainence page configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_performance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_performance.yml index fa83c7f..25bf122 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_performance.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_performance.yml @@ -1,4 +1,5 @@ id: d6_system_performance +label: Drupal 6 performance configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_rss.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_rss.yml index ced4769..0325553 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_rss.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_rss.yml @@ -1,4 +1,5 @@ id: d6_system_rss +label: Drupal 6 RSS configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_site.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_site.yml index 0bfe4e6..f3b5b08 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_site.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_site.yml @@ -1,4 +1,5 @@ id: d6_system_site +label: Drupal 6 site configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_system_theme.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_system_theme.yml index 8c1ffd8..65b10cb 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_system_theme.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_system_theme.yml @@ -1,4 +1,5 @@ id: d6_system_theme +label: Drupal 6 theme configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_settings.yml index 78caf05..f5919b4 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_settings.yml @@ -1,4 +1,5 @@ id: d6_taxonomy_settings +label: Drupal 6 taxonomy configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_term.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_term.yml new file mode 100644 index 0000000..f57a254 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_term.yml @@ -0,0 +1,25 @@ +id: d6_taxonomy_term +label: Drupal 6 taxonomy terms +source: + plugin: d6_taxonomy_term +process: + tid: tid + vid: + plugin: migration + migration: d6_taxonomy_vocabulary + source: vid + name: name + description: description + weight: weight + parent: + - + plugin: skip_process_on_empty + source: parent + - + plugin: migration + migration: d6_taxonomy_term + changed: timestamp +destination: + plugin: entity:taxonomy_term +migration_dependencies: + - d6_taxonomy_vocabulary diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_vocabulary.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_vocabulary.yml new file mode 100644 index 0000000..d654323 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_taxonomy_vocabulary.yml @@ -0,0 +1,20 @@ +id: d6_taxonomy_vocabulary +label: Drupal 6 taxonomy vocabularies +source: + plugin: d6_taxonomy_vocabulary +process: + vid: + - + plugin: machine_name + source: name + - + plugin: dedupe_entity + entity_type: taxonomy_vocabulary + field: vid + label: name + name: name + description: description + hierarchy: hierarchy + weight: weight +destination: + plugin: entity:taxonomy_vocabulary diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_term_node.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_term_node.yml new file mode 100644 index 0000000..129798f --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_term_node.yml @@ -0,0 +1,19 @@ +id: d6_term_node +label: Drupal 6 term/node relationships +load: + plugin: d6_term_node + +source: + plugin: d6_term_node + +process: + nid: nid + type: type + # The actual field name is dynamic and will be added by the load plugin. + +destination: + plugin: entity:node +migration_dependencies: + - d6_vocabulary_entity_display + - d6_vocabulary_entity_form_display + - d6_node diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_term_node_revision.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_term_node_revision.yml new file mode 100644 index 0000000..a9d1f20 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_term_node_revision.yml @@ -0,0 +1,18 @@ +id: d6_term_node_revision +label: Drupal 6 term/node relationship revisions +load: + plugin: d6_term_node + bundle_migration: d6_vocabulary_field + +source: + plugin: d6_term_node_revision + +process: + vid: vid + # The actual field name is dynamic and will be added by the load plugin. + +destination: + plugin: entity_revision:node +migration_dependencies: + - d6_term_node + - d6_node_revision diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_text_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_text_settings.yml index e2e5fbd..6a4f0a6 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_text_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_text_settings.yml @@ -1,4 +1,5 @@ id: d6_text_settings +label: Drupal 6 teaser length configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_update_settings.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_update_settings.yml index 6004b36..5b34a2e 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_update_settings.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_update_settings.yml @@ -1,4 +1,5 @@ id: d6_update_settings +label: Drupal 6 update configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_upload.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_upload.yml new file mode 100644 index 0000000..b831add --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_upload.yml @@ -0,0 +1,23 @@ +id: d6_upload +label: Drupal 6 file uploads +source: + plugin: d6_upload + +process: + nid: nid + vid: vid + upload: + plugin: iterator + source: upload + process: + target_id: + plugin: migration + migration: d6_file + source: fid + display: list + description: description +destination: + plugin: entity:node +migration_dependencies: + - d6_file + - d6_node diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_display.yml new file mode 100644 index 0000000..ae727c8 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_display.yml @@ -0,0 +1,24 @@ +id: d6_upload_entity_display +label: Drupal 6 upload display configuration +source: + plugin: d6_upload_instance + constants: + entity_type: node + view_mode: default + name: upload + type: file_default + options: + label: hidden + settings: {} +process: + entity_type: constants.entity_type + bundle: node_type + view_mode: constants.view_mode + field_name: constants.name + type: constants.type + options: constants.options + 'options.type': @type +destination: + plugin: component_entity_display +migration_dependencies: + - d6_upload_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_form_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_form_display.yml new file mode 100644 index 0000000..43ead27 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_entity_form_display.yml @@ -0,0 +1,26 @@ +id: d6_upload_entity_form_display +label: Drupal 6 upload form display configuration +source: + plugin: d6_upload_instance + constants: + empty: {} + entity_type: node + form_mode: default + name: upload + type: file_generic + options: + label: hidden + settings: + progress_indicator: throbber +process: + entity_type: constants.entity_type + bundle: node_type + field_name: constants.name + form_mode: constants.form_mode + type: constants.type + options: constants.options + 'options.type': @type +destination: + plugin: component_entity_form_display +migration_dependencies: + - d6_upload_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field.yml new file mode 100644 index 0000000..05cd8e2 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field.yml @@ -0,0 +1,21 @@ +id: d6_upload_field +label: Drupal 6 upload field configuration +source: + # We do an empty source and a proper destination to have an idmap for + # migration_dependencies. + plugin: empty + provider: upload + constants: + entity_type: node + type: file + name: upload + cardinality: -1 + display_field: true +process: + entity_type: constants.entity_type + name: constants.name + type: constants.type + cardinality: constants.cardinality + settings.display_field: constants.display_field +destination: + plugin: entity:field_config diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field_instance.yml new file mode 100644 index 0000000..a25de1f --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_upload_field_instance.yml @@ -0,0 +1,20 @@ +id: d6_upload_field_instance +label: Drupal 6 upload field instance configuration +source: + plugin: d6_upload_instance + constants: + entity_type: node + name: upload + settings: + description_field: 1 +process: + entity_type: constants.entity_type + bundle: node_type + field_name: constants.name + settings: constants.settings + 'settings.file_extensions': file_extensions + 'settings.max_filesize': max_filesize +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_upload_field diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_url_alias.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_url_alias.yml new file mode 100644 index 0000000..8286827 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_url_alias.yml @@ -0,0 +1,12 @@ +id: d6_url_alias +label: Drupal 6 URL aliases +source: + plugin: d6_url_alias + +process: + source: src + alias: dst + langcode: language + +destination: + plugin: url_alias diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user.yml new file mode 100644 index 0000000..e11b150 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user.yml @@ -0,0 +1,39 @@ +id: d6_user +label: Drupal 6 user accounts +source: + plugin: d6_user +process: + uid: uid + name: name + pass: pass + mail: mail + created: created + access: access + login: login + status: status + timezone: + plugin: user_update_7002 + source: timezone + preferred_langcode: language + init: init + roles: + plugin: migration + migration: d6_user_role + source: roles + signature: signature + signature_format: + plugin: migration + migration: d6_filter_format + source: signature_format + user_picture: + plugin: d6_user_picture + source: uid +destination: + plugin: entity:user + md5_passwords: true +migration_dependencies: + - d6_filter_format + - d6_user_role + - d6_user_picture_entity_display + - d6_user_picture_entity_form_display + - d6_user_picture_file: false diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_mail.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_mail.yml index 75dee05..9716bef 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_user_mail.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_mail.yml @@ -1,4 +1,5 @@ id: d6_user_mail +label: Drupal 6 user mail configuration source: plugin: variable variables: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_display.yml new file mode 100644 index 0000000..e87032b --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_display.yml @@ -0,0 +1,27 @@ +id: d6_user_picture_entity_display +label: Drupal 6 user picture display configuration +source: + plugin: d6_user_picture_instance + constants: + entity_type: user + bundle: user + view_mode: default + name: user_picture + type: image + options: + label: hidden + settings: + image_style: '' + image_link: content +process: + entity_type: constants.entity_type + bundle: constants.bundle + view_mode: constants.view_mode + field_name: constants.name + type: constants.type + options: constants.options + options.type: @type +destination: + plugin: component_entity_display +migration_dependencies: + - d6_user_picture_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_form_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_form_display.yml new file mode 100644 index 0000000..c977440 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_entity_form_display.yml @@ -0,0 +1,27 @@ +id: d6_user_picture_entity_form_display +label: Drupal 6 user picture form display configuration +source: + plugin: d6_user_picture_instance + constants: + entity_type: user + bundle: user + form_mode: default + name: user_picture + type: image_image + options: + label: hidden + settings: + progress_indicator: throbber + preview_image_style: thumbnail +process: + entity_type: constants.entity_type + bundle: constants.bundle + field_name: constants.name + form_mode: constants.form_mode + type: constants.type + options: constants.options + options.type: @type +destination: + plugin: component_entity_form_display +migration_dependencies: + - d6_user_picture_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field.yml new file mode 100644 index 0000000..ed53dd1 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field.yml @@ -0,0 +1,18 @@ +id: d6_user_picture_field +label: Drupal 6 user picture field configuration +source: + # We do an empty source and a proper destination to have an idmap for + # dependencies. + plugin: empty + constants: + entity_type: user + type: image + name: user_picture + cardinality: 1 +process: + entity_type: constants.entity_type + name: constants.name + type: constants.type + cardinality: constants.cardinality +destination: + plugin: entity:field_config diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field_instance.yml new file mode 100644 index 0000000..e4645e6 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_field_instance.yml @@ -0,0 +1,27 @@ +id: d6_user_picture_field_instance +label: Drupal 6 user picture field instance configuration +source: + plugin: d6_user_picture_instance + constants: + entity_type: user + bundle: user + name: user_picture + settings: + file_extensions: 'png gif jpg jpeg' + alt_field: false + title_field: false + min_resolution: '' + alt_field_required: false + title_field_required: false +process: + entity_type: constants.entity_type + bundle: constants.bundle + field_name: constants.name + settings: constants.settings + 'settings.file_directory': file_directory + 'settings.max_filesize': max_filesize + 'settings.max_resolution': max_resolution +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_user_picture_field diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_file.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_file.yml new file mode 100644 index 0000000..687674f --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_picture_file.yml @@ -0,0 +1,19 @@ +id: d6_user_picture_file +label: Drupal 6 user pictures +source: + plugin: d6_user_picture_file + constants: + is_public: true +process: + filename: filename + uri: + plugin: file_uri + source: + - picture + - file_directory_path + - constants.is_public +destination: + plugin: entity:file + source_path_property: picture +migration_dependencies: + - d6_file: false diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_display.yml new file mode 100644 index 0000000..0e026dc --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_display.yml @@ -0,0 +1,38 @@ +id: d6_user_profile_entity_display +label: Drupal 6 user profile display configuration +source: + plugin: d6_profile_field + constants: + entity_type: user + bundle: user + view_mode: default + options: + label: hidden + settings: {} +process: + entity_type: constants.entity_type + bundle: constants.bundle + view_mode: constants.view_mode + field_name: name + type: + plugin: static_map + source: type + map: + checkbox: list_default + date: datetime_default + list: text_default + selection: list_default + textfield: text_default + textarea: text_default + url: link_default + options: constants.options + 'options.type': @type + hidden: + plugin: static_map + source: visibility + default_value: false + map: + 1: true # PROFILE_PRIVATE + 4: true # PROFILE_HIDDEN +destination: + plugin: component_entity_display diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_form_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_form_display.yml new file mode 100644 index 0000000..c74b37f --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_entity_form_display.yml @@ -0,0 +1,43 @@ +id: d6_user_profile_entity_form_display +label: Drupal 6 user profile form display configuration +source: + plugin: d6_profile_field + constants: + empty: {} + entity_type: user + bundle: user + form_mode: default + options: + label: hidden +process: + entity_type: constants.entity_type + bundle: constants.bundle + field_name: name + form_mode: constants.form_mode + type: + plugin: static_map + source: type + map: + checkbox: options_select + date: datetime_default + list: text_textfield + selection: options_select + textfield: text_textfield + textarea: text_textarea + url: link_default + options: constants.options + 'options.type': @type + 'options.settings': + plugin: field_instance_widget_settings + source: + - @type + - constants.empty # we don't have any settings. + hidden: + plugin: static_map + source: visibility + default_value: false + map: + 1: true # PROFILE_PRIVATE + 4: true # PROFILE_HIDDEN +destination: + plugin: component_entity_form_display diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field.yml new file mode 100644 index 0000000..fb9217c --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field.yml @@ -0,0 +1,28 @@ +id: d6_user_profile_field +label: Drupal 6 user profile field configuration +source: + plugin: d6_profile_field + constants: + entity_type: user +process: + entity_type: constants.entity_type + name: name + type: + plugin: static_map + source: type + map: + checkbox: list_integer + date: datetime + list: text + selection: list_text + textfield: text + textarea: text_long + url: link + cardinality: + plugin: static_map + default_value: 1 + source: type + map: + list: -1 +destination: + plugin: entity:field_config diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field_instance.yml new file mode 100644 index 0000000..d967473 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_profile_field_instance.yml @@ -0,0 +1,18 @@ +id: d6_user_profile_field_instance +label: Drupal 6 user profile field instance configuration +source: + plugin: d6_profile_field + constants: + entity_type: user + bundle: user +process: + entity_type: constants.entity_type + bundle: constants.bundle + label: title + description: explanation + field_name: name + required: required +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_user_profile_field diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_user_role.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_user_role.yml index b2372b5..cabd3c0 100644 --- a/core/modules/migrate_drupal/config/migrate.migration.d6_user_role.yml +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_user_role.yml @@ -1,4 +1,5 @@ id: d6_user_role +label: Drupal 6 user roles source: plugin: d6_user_role process: diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_view_modes.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_view_modes.yml new file mode 100644 index 0000000..3bc9131 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_view_modes.yml @@ -0,0 +1,38 @@ +id: d6_view_modes +label: Drupal 6 view modes +source: + plugin: d6_view_mode + constants: + targetEntityType: node + status: true + +process: + mode: + plugin: static_map + source: view_mode + map: + 0: normal + 1: preview + 2: search_index + 3: search_result + 4: rss + 5: print + teaser: teaser + full: full + label: + plugin: static_map + source: view_mode + map: + 0: "Normal" + 1: "Preview" + 2: "Search index" + 3: "Search result" + 4: "RSS" + 5: "Print" + teaser: "Teaser" + full: "Full" + targetEntityType: constants.targetEntityType + status: constants.status + +destination: + plugin: entity:view_mode diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_display.yml new file mode 100644 index 0000000..5c62e04 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_display.yml @@ -0,0 +1,25 @@ +id: d6_vocabulary_entity_display +label: Drupal 6 vocabulary display configuration +source: + plugin: d6_taxonomy_vocabulary_per_type + constants: + entity_type: node + view_mode: default + options: + label: hidden + type: taxonomy_term_reference_link + weight: 20 + +process: + entity_type: constants.entity_type + view_mode: constants.view_mode + options: constants.options + bundle: type + field_name: + plugin: migration + migration: d6_taxonomy_vocabulary + source: vid +destination: + plugin: component_entity_display +migration_dependencies: + - d6_vocabulary_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_form_display.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_form_display.yml new file mode 100644 index 0000000..6f82b29 --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_entity_form_display.yml @@ -0,0 +1,23 @@ +id: d6_vocabulary_entity_form_display +label: Drupal 6 vocabulary form display configuration +source: + plugin: d6_taxonomy_vocabulary_per_type + constants: + entity_type: node + form_mode: default + options: + type: options_select + weight: 20 +process: + entity_type: constants.entity_type + form_mode: constants.form_mode + options: constants.options + bundle: type + field_name: + plugin: migration + migration: d6_taxonomy_vocabulary + source: vid +destination: + plugin: component_entity_form_display +migration_dependencies: + - d6_vocabulary_field_instance diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field.yml new file mode 100644 index 0000000..d497dbf --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field.yml @@ -0,0 +1,23 @@ +id: d6_vocabulary_field +label: Drupal 6 vocabulary field configuration +source: + plugin: d6_taxonomy_vocabulary + constants: + entity_type: node + type: taxonomy_term_reference + parent: 0 + cardinality: -1 +process: + entity_type: constants.entity_type + type: constants.type + name: + plugin: migration + migration: d6_taxonomy_vocabulary + source: vid + 'settings.allowed_values.0.vocabulary': @name + 'settings.allowed_values.0.parent': constants.parent + cardinality: constants.cardinality +destination: + plugin: entity:field_config +migration_dependencies: + - d6_taxonomy_vocabulary diff --git a/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field_instance.yml b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field_instance.yml new file mode 100644 index 0000000..c5c763d --- /dev/null +++ b/core/modules/migrate_drupal/config/migrate.migration.d6_vocabulary_field_instance.yml @@ -0,0 +1,20 @@ +id: d6_vocabulary_field_instance +label: Drupal 6 vocabulary field instance configuration +source: + plugin: d6_taxonomy_vocabulary_per_type + constants: + entity_type: node + parent: 0 +process: + entity_type: constants.entity_type + bundle: type + field_name: + plugin: migration + migration: d6_taxonomy_vocabulary + source: vid + 'settings.allowed_values.0.vocabulary': @field_name + 'settings.allowed_values.0.parent': constants.parent +destination: + plugin: entity:field_instance_config +migration_dependencies: + - d6_vocabulary_field