wxt-8.x-3.011/modules/custom/wxt_ext/wxt_ext_migration/config/install/migrate_plus.migration.gcweb_block_spotlight_translation.yml
modules/custom/wxt_ext/wxt_ext_migration/config/install/migrate_plus.migration.gcweb_block_spotlight_translation.yml
id: gcweb_block_spotlight_translation
migration_group: gcweb_translation
migration_tags:
- Core
dependencies:
enforced:
module:
- entityqueue
- wxt_ext_migration
label: 'Embedded data import for custom block types (spotlight)'
source:
plugin: embedded_data
translations: true
# Enforce default language to french
default_lang: false
data_rows:
- bid: 'feature_block_1'
language: 'fr'
title: '[Lien à l’élément en vedette]'
body: |
<p>Brève description de l’élément en vedette.</p>
fid:
- id: '360x203'
- bid: 'feature_block_2'
language: 'fr'
title: '[Lien à l’élément en vedette]'
body: |
<p>Brève description de l’élément en vedette.</p>
fid:
- id: '360x203'
- bid: 'feature_block_3'
language: 'fr'
title: '[Lien à l’élément en vedette]'
body: |
<p>Brève description de l’élément en vedette.</p>
fid:
- id: '360x203'
# Under 'ids', we identify source fields populated above which will uniquely
# identify each imported item. The 'type' makes sure the migration map table
# uses the proper schema type for stored the IDs.
ids:
bid:
type: string
process:
id:
plugin: migration_lookup
migration: gcweb_block_spotlight
source: bid
info: title
uid:
plugin: default_value
default_value: 1
'body/value': body
'body/format':
plugin: default_value
default_value: rich_text
langcode: language
# Add image to media entity.
field_spotlight_media:
plugin: sub_process
source: fid
process:
target_id:
plugin: migration_lookup
migration: wxt_media
source: id
content_translation_source:
plugin: default_value
default_value: "en"
destination:
plugin: entity:block_content
default_bundle: spotlight
no_stub: true
translations: true
migration_dependencies:
required:
- wxt_file
- wxt_media
- gcweb_block_spotlight
