From 1a4cc80362ba8294dec3ce3deada3ce604d152ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurucz=20Istv=C3=A1n?= <kurucz.istvan@gmail.com> Date: Wed, 3 Nov 2021 01:02:28 +0100 Subject: [PATCH] Migrate node-type title label. --- migrations/d5_node_setting_title_label.yml | 29 ++++++++++++++++++++++ migrations/d5_node_type.yml | 1 - 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 migrations/d5_node_setting_title_label.yml diff --git a/migrations/d5_node_setting_title_label.yml b/migrations/d5_node_setting_title_label.yml new file mode 100644 index 0000000..ac3218f --- /dev/null +++ b/migrations/d5_node_setting_title_label.yml @@ -0,0 +1,29 @@ +id: d5_node_setting_title_label +label: Drupal 5 node type label +migration_tags: + - Drupal 5 + - Configuration +source: + plugin: d5_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: 'constants/entity_type' + bundle: type + field_name: 'constants/field_name' +destination: + plugin: entity:base_field_override +migration_dependencies: + required: + - d5_node_type diff --git a/migrations/d5_node_type.yml b/migrations/d5_node_type.yml index f0bb670..4694688 100644 --- a/migrations/d5_node_type.yml +++ b/migrations/d5_node_type.yml @@ -14,7 +14,6 @@ process: module: module description: description help: help - title_label: title_label preview_mode: 'constants/preview' display_submitted: display_submitted new_revision: 'options/revision' -- GitLab