Add upgrade_d7_node_title_label configuration migration

Copied from ref_migrations folder
This commit is contained in:
Mauricio Dinarte 2024-07-22 21:38:41 -06:00
parent ab96909d98
commit c3923a5c44

View file

@ -0,0 +1,54 @@
uuid: bd82e607-d0d8-46b6-b741-5f8fa8628469
langcode: en
status: true
dependencies: { }
id: upgrade_d7_node_title_label
class: Drupal\migrate\Plugin\Migration
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- 'Drupal 7'
- Configuration
migration_group: migrate_drupal_7
label: 'Node title label'
source:
plugin: d7_node_type
constants:
entity_type: node
field_name: title
process:
label:
-
plugin: static_map
source: title_label
bypass: true
map:
Title: 0
-
plugin: skip_on_empty
method: row
entity_type:
-
plugin: get
source: constants/entity_type
-
plugin: static_map
map:
field_collection_item: paragraph
paragraphs_item: paragraph
bypass: true
bundle:
-
plugin: get
source: type
field_name:
-
plugin: get
source: constants/field_name
destination:
plugin: 'entity:base_field_override'
migration_dependencies:
required:
- upgrade_d7_node_type
optional:
- upgrade_d7_field_collection_type