Skip to content

Instantly share code, notes, and snippets.

@davidjguru
Last active March 21, 2020 13:28
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 davidjguru/8eb16d04535dbe1523bfea0f358acf0f to your computer and use it in GitHub Desktop.
Save davidjguru/8eb16d04535dbe1523bfea0f358acf0f to your computer and use it in GitHub Desktop.
Drupal Migrations: Basic Migration descript file for two nodes using embedded format.
id: basic_migration_one
label: 'Custom Basic Migration 2000'
source:
plugin: embedded_data
data_rows:
-
unique_id: 1
page_title: 'Title for migrated node - One'
page_content: 'Lorem fistrum mamaar se calle ustée tiene musho pelo.'
-
unique_id: 2
page_title: 'Title for migrated node - Two'
page_content: 'Se calle ustée caballo blanco caballo negroorl.'
ids:
unique_id:
type: integer
process:
title: article_title
body: article_content
destination:
plugin: 'entity:node'
default_bundle: page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment