From 8bc6a6e7b56c6c27929aa4dafaf060ed6ec8ac46 Mon Sep 17 00:00:00 2001 From: Mauricio Dinarte Date: Wed, 4 Dec 2024 10:11:57 -0600 Subject: [PATCH] Add upgrade_d7_field configuration migration Copied from ref_migrations folder --- .../migrations/upgrade_d7_field.yml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 drupal10/web/modules/custom/tag1_migration/tag1_migration_config/migrations/upgrade_d7_field.yml diff --git a/drupal10/web/modules/custom/tag1_migration/tag1_migration_config/migrations/upgrade_d7_field.yml b/drupal10/web/modules/custom/tag1_migration/tag1_migration_config/migrations/upgrade_d7_field.yml new file mode 100644 index 0000000..85faa47 --- /dev/null +++ b/drupal10/web/modules/custom/tag1_migration/tag1_migration_config/migrations/upgrade_d7_field.yml @@ -0,0 +1,86 @@ +uuid: 30f95a1e-ce50-4029-9fee-7fdd68d43ea2 +langcode: en +status: true +dependencies: { } +id: upgrade_d7_field +class: Drupal\migrate_drupal\Plugin\migrate\FieldMigration +field_plugin_method: alterFieldMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Configuration +migration_group: migrate_drupal_7 +label: 'Field configuration' +source: + plugin: d7_field + constants: + status: true + langcode: und +process: + entity_type: + - + plugin: get + source: entity_type + - + plugin: static_map + map: + field_collection_item: paragraph + paragraphs_item: paragraph + bypass: true + status: + - + plugin: get + source: constants/status + langcode: + - + plugin: get + source: constants/langcode + field_name: + - + plugin: get + source: field_name + type: + - + plugin: process_field + source: type + method: getFieldType + map: + d7_text: + d7_text: d7_text + taxonomy_term_reference: + taxonomy_term_reference: taxonomy_term_reference + image: + image: image + email: + email: email + field_url: + field_url: field_url + addressfield: + addressfield: addressfield + telephone: + telephone: telephone + entityreference: + entityreference: entityreference + file: + file: file + list: + list: list + datetime: + datetime: datetime + number_default: + number_default: number_default + cardinality: + - + plugin: get + source: cardinality + settings: + 0: + plugin: d7_field_settings + field_collection: + plugin: field_collection_field_settings +destination: + plugin: 'entity:field_storage_config' +migration_dependencies: + required: { } + optional: + - upgrade_d7_field_collection_type