Adding lancode during Entity Generating

Created on 14 December 2023, 11 months ago

When we have multilingual sites it's important to create entities in different languages and also during migration look for entities by it's languages.

migrate_plus.migration.xxxxxx.yml

source:
fields:
-
name: language
label: Language
-
name: field_xxx
label: XXX
process:
field_xxx:
-
plugin: keep_value_on_translation
method: process
source: field_xxx
-
plugin: entity_generate
value_key: name
bundle_key: vid
bundle: xxx
entity_type: taxonomy_term
ignore_case: true
values:
langcode: language

If we have configuration['values']['langcode'] we will check entity by language.

πŸ› Bug report
Status

Active

Version

6.0

Component

Plugins

Created by

πŸ‡ΊπŸ‡¦Ukraine vorona olya

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024