Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of embedded data source plugin for migration of Drupal Commerce stores
langcode: en
status: true
dependencies:
enforced:
module:
- wbconline_migrate
id: commerce_store
migration_tags: null
migration_group: wbconline
label: 'Create default commerce store'
source:
plugin: embedded_data
data_rows:
-
id: default_store
type: online
name: 'Worthington Biochemical'
mail: custservice@example-domain.com
default_currency: USD
country_code: US
administrative_area: NJ
locality: Lakewood
postal_code: '08701'
address_line1: '730 Vassar Ave'
ids:
id:
type: string
process:
type: type
name: name
mail: mail
default_currency: default_currency
address/country_code: country_code
address/administrative_area: administrative_area
address/locality: locality
address/postal_code: postal_code
address/address_line1: address_line1
destination:
plugin: 'entity:commerce_store'
migration_dependencies: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment