-
Notifications
You must be signed in to change notification settings - Fork 6
/
migrate_plus.migration.example_creature_base.yml
59 lines (58 loc) · 1.63 KB
/
migrate_plus.migration.example_creature_base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Migration of "article" node data from Drupal 7.
#
# This file demonstrates migration of content translated with
# the 'entity_translation' module.
#
# Since a detailed description of many configuration parameters
# has been provided in the 'hybrid_base' and 'hybrid_i18n' migrations,
# they have not been repeated here. Kindly refer to those migrations
# if you are looking for detailed descriptions for various paramters.
# Migration metadata
id: example_creature_base
label: Creature base data
migration_group: example_creature
migration_tags:
- node
- article
- d7
# Migration source
source:
# Ignoring translations! The tricky part!
#
# The Drupal 7 version of the migration source Node does not
# support the "translations" parameter at this moment. Hence,
# even if you specify "translations: flase" (or omit that line),
# all nodes, including translations, are imported.
#
# To prevent this, I chose to write the method D7NodeEntityTranslation::query().
plugin: d7_node_entity_translation
# The type of nodes we want to migrate.
node_type: article
# Specify source database.
key: drupal_7_entity
# Static values for the migration.
constants:
uid_root: 1
node_article: 'article'
# Migration destination
destination:
plugin: 'entity:node'
# Migration processes
process:
type: constants/node_article
langcode:
plugin: default_value
source: language
default_value: und
title: title
body: body
field_one_liner: field_one_liner
uid: 'constants/uid_root'
sticky: sticky
status: status
promote: promote
# General dependencies
dependencies:
enforced:
module:
- migrate_example_i18n