| making happiness possible axelerant.com
Drupal Camp Bangalore
Getting into Drupal 8 Migration
Drupal Camp Bangalore Getting into Drupal 8 Migration | making - - PowerPoint PPT Presentation
Drupal Camp Bangalore Getting into Drupal 8 Migration | making happiness possible axelerant.com About Me Mohit Aghera Drupal Developer @Axelerant Drupal : mohit_aghera Twitter: mohit_rocks | making happiness possible axelerant.com D8
| making happiness possible axelerant.com
Getting into Drupal 8 Migration
| making happiness possible axelerant.com
Mohit Aghera Drupal Developer @Axelerant Drupal : mohit_aghera Twitter: mohit_rocks
| making happiness possible axelerant.com
modules have been rewritten.
| making happiness possible axelerant.com
| making happiness possible axelerant.com
bugs remain.
module}
core.
| making happiness possible axelerant.com
content and configuration data of any contrib or custom module.
| making happiness possible axelerant.com
| making happiness possible axelerant.com
| making happiness possible axelerant.com
migrate_example_user_role. yml”
name
data; usually source plugin
plugins applied to destination field.
| making happiness possible axelerant.com
| making happiness possible axelerant.com
process: uid: plugin: migration id: users source: author
| making happiness possible axelerant.com
passed to multiple plugins.
process: format:
source: name
entity_type: filter_format field: format
| making happiness possible axelerant.com
| making happiness possible axelerant.com
to “Destination”
process: bar: plugin: get source: foo process: bar: foo process: foo: plugin: machine_name source: baz bar: plugin: get source: “@foo"
| making happiness possible axelerant.com
passed to a callable
argument to avoid very complex YAML
process: destination_field:
callable:
source: source_field
| making happiness possible axelerant.com
values for relevant D8 destination values
process: new_text_field: plugin: concat source:
process: new_text_field: plugin: concat source:
delimiter: /
| making happiness possible axelerant.com
prevent duplication.
and fields.
process: format:
source: name
entity_type: filter_format field: format
| making happiness possible axelerant.com
destination
delimiter, a start position, and a length
process: new_text_field: plugin: dedupebase source: some_text_field postfix: _ start: 2 length: 6
| making happiness possible axelerant.com
default value
value if the pipeline has no value (NULL, zero or empty string)
process: uid:
id: users source: author
default_value: 44
| making happiness possible axelerant.com
multi-level arrays in the source
process: new_text_field: plugin: extract source: some_text_field index:
| making happiness possible axelerant.com
| making happiness possible axelerant.com
machine name
process: bar: plugin: machine_name source: foo Source: áéíK! Destination: aeik_
| making happiness possible axelerant.com
source and destination content in map tables.
process: uid: plugin: migration migration: users source:
| making happiness possible axelerant.com
pipeline is empty.
value to destination.
process: parent:
source: parent
migration: d6_taxonomy_term
| making happiness possible axelerant.com
“MigrateSkipRowException” exception
process: settings: plugin: skip_row_if_not_set index: contact source: data
| making happiness possible axelerant.com
empty
process: field_type_exists:
migration: d6_field source:
index:
| making happiness possible axelerant.com
based on a map specified in the configuration.
process: bar: plugin: static_map source: foo map: from: to this: that
axelerant.com | making happiness possible
process: id: plugin: static_map source:
map: filter: 0: filter_html_escape 1: filter_autop 2: filter_url 3: filter_htmlcorrector 4: filter_html_escape php: 0: php_code
| making happiness possible axelerant.com
plugin key like entity: entity_type
exportable
destination: plugin: config config_name: book.settings
| making happiness possible axelerant.com
| making happiness possible axelerant.com
database to drupal 8
| making happiness possible axelerant.com
| making happiness possible axelerant.com