wxt-8.x-3.011/modules/custom/wxt_ext/wxt_ext_migration/config/install/migrate_plus.migration.wxt_media.yml
modules/custom/wxt_ext/wxt_ext_migration/config/install/migrate_plus.migration.wxt_media.yml
id: wxt_media
label: Embedded data feed of media associated metadata
migration_group: wxt
migration_tags:
- Core
dependencies:
enforced:
module:
- wxt_ext_migration
source:
plugin: embedded_data
# Enforce default language to english
default_lang: true
data_rows:
- fid: '218x291'
title: 'Image (218x291)'
alt: 'Image (218x291)'
caption: 'Image (218x291) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '265x352'
title: 'Image (265x352)'
alt: 'Image (265x352)'
caption: 'Image (265x352) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '355x113'
title: 'Image (355x113)'
alt: 'Image (355x113)'
caption: 'Image (355x113) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '360x203'
title: 'Image (360x203)'
alt: 'Image (360x203)'
caption: 'Image (360x203) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '520x296'
title: 'Image (520x296)'
alt: 'Image (520x296)'
caption: 'Image (520x296) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '653x194-1'
title: 'Image (653x194)'
alt: 'Image (653x194)'
caption: 'Image (653x194) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '653x194-2'
title: 'Image (653x194)'
alt: 'Image (653x194)'
caption: 'Image (653x194) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '653x194-3'
title: 'Image (653x194)'
alt: 'Image (653x194)'
caption: 'Image (653x194) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '750x222-1'
title: 'Image (750x222)'
alt: 'Image (750x222)'
caption: 'Image (750x222) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '750x222-2'
title: 'Image (750x222)'
alt: 'Image (750x222)'
caption: 'Image (750x222) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '1170x347-1'
title: 'Image (1170x347)'
alt: 'Image (1170x347)'
caption: 'Image (1170x347) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '1170x347-2'
title: 'Image (1170x347)'
alt: 'Image (1170x347)'
caption: 'Image (1170x347) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
- fid: '1170x347-3'
title: 'Image (1170x347)'
alt: 'Image (1170x347)'
caption: 'Image (1170x347) used for Drupal WxT.'
link_uri: 'http://wet-boew.github.io/themes-dist/GCWeb/gcweb-theme/'
link_title: '[Title of destination page – call to action]'
# 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:
fid:
type: string
process:
# Media bundle.
bundle:
plugin: default_value
default_value: image
# Use image title as media name.
name: title
status:
plugin: default_value
default_value: 1
# Add image to media entity.
'field_media_image/target_id':
plugin: migration_lookup
migration: wxt_file
source: fid
'field_media_image/title': title
'field_media_image/alt': alt
'field_image_link/uri': link_uri
'field_image_link/title': link_title
destination:
plugin: entity:media
migration_dependencies:
required:
- wxt_file
