Angel Hañari
Drupal Developer
Backend Drupal Developer
@langelhc
Design Marco Torres
I work for:
Drupal Perú
Find this presentation on:
source:
plugin: csv
path: modules/custom/mbe_professors/sources/mbe_professors.csv
header_row_count: 1
keys:
- 'Professor ID'
Yaml syntax is very important, 2 spaces for indentation
process:
type:
plugin: default_value
default_value: mbe_professor
destination:
plugin: 'entity:node'
Required Drupal Core Modules
e.g.: /core/modules/node/migrations/d7_node_type.yml
id: d7_node_type
label: Node type configuration
source:
plugin: d7_node_type
constants:
preview: 1 # DRUPAL_OPTIONAL
process:
type: type
name: name
description: description
...
destination:
plugin: entity:node_type
#Install a clean D8
$ composer require drupal/migrate_tools drupal/migrate_plus
$ drush en migrate_tools migrate_plus -y
$ drush en user_migration -y #Enable migration custom module
$ drush ms
$ drush migrate:import custom_user_migration
$ drupal debug:plugin migrate.source
$ drupal debug:plugin migrate.process
$ drupal debug:plugin migrate.destination
Diseño por Marco Torres: https://groups.drupal.org/user/134468
By Angel Hañari