Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisastreeter/3c2bf6c027a85e1cc40b692dca1cf0ba to your computer and use it in GitHub Desktop.
Save lisastreeter/3c2bf6c027a85e1cc40b692dca1cf0ba to your computer and use it in GitHub Desktop.
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