Move into nested docroot

This commit is contained in:
Rob Davies 2017-02-13 15:31:17 +00:00
parent 83a0d3a149
commit c8b70abde9
13405 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,54 @@
id: d6_node
label: Nodes
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
source:
plugin: d6_node
process:
# In D6, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
nid: tnid
vid: vid
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
'body/format':
plugin: migration
migration: d6_filter_format
source: format
'body/value': body
'body/summary': teaser
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
# unmapped d6 fields.
# tnid
# translate
# moderate
# comment
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_user
- d6_node_type
- d6_node_settings
- d6_filter_format
optional:
- d6_field_instance_widget_settings
- d6_field_formatter_settings
- d6_upload_field_instance

View file

@ -0,0 +1,41 @@
id: d6_node_revision
label: Node revisions
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
source:
plugin: d6_node_revision
process:
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
nid: nid
vid: vid
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
'body/format':
plugin: migration
migration: d6_filter_format
source: format
'body/value': body
'body/summary': teaser
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
# unmapped d6 fields.
# tnid
# translate
# moderate
# comment
destination:
plugin: entity_revision:node

View file

@ -0,0 +1,22 @@
id: d6_node_setting_promote
label: Node type 'promote' setting
migration_tags:
- Drupal 6
source:
plugin: d6_node_type
constants:
entity_type: node
field_name: promote
process:
entity_type: 'constants/entity_type'
bundle: type
field_name: 'constants/field_name'
label:
plugin: default_value
default_value: 'Promoted to front page'
'default_value/0/value': 'options/promote'
destination:
plugin: entity:base_field_override
migration_dependencies:
required:
- d6_node_type

View file

@ -0,0 +1,22 @@
id: d6_node_setting_status
label: Node type 'status' setting
migration_tags:
- Drupal 6
source:
plugin: d6_node_type
constants:
entity_type: node
field_name: status
process:
entity_type: 'constants/entity_type'
bundle: type
field_name: 'constants/field_name'
label:
plugin: default_value
default_value: 'Publishing status'
'default_value/0/value': 'options/status'
destination:
plugin: entity:base_field_override
migration_dependencies:
required:
- d6_node_type

View file

@ -0,0 +1,22 @@
id: d6_node_setting_sticky
label: Node type 'sticky' setting
migration_tags:
- Drupal 6
source:
plugin: d6_node_type
constants:
entity_type: node
field_name: sticky
process:
entity_type: 'constants/entity_type'
bundle: type
field_name: 'constants/field_name'
label:
plugin: default_value
default_value: 'Sticky at the top of lists'
'default_value/0/value': 'options/sticky'
destination:
plugin: entity:base_field_override
migration_dependencies:
required:
- d6_node_type

View file

@ -0,0 +1,13 @@
id: d6_node_settings
label: Node configuration
migration_tags:
- Drupal 6
source:
plugin: variable
variables:
- node_admin_theme
process:
use_admin_theme: node_admin_theme
destination:
plugin: config
config_name: node.settings

View file

@ -0,0 +1,55 @@
id: d6_node_translation
label: Node translations
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
source:
plugin: d6_node
translations: true
process:
# If you are using this file to build a custom migration consider removing
# the nid field to allow incremental migrations.
nid: tnid
type: type
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
'body/format':
plugin: migration
migration: d6_filter_format
source: format
'body/value': body
'body/summary': teaser
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
content_translation_source: source_langcode
# unmapped d6 fields.
# translate
# moderate
# comment
destination:
plugin: entity:node
translations: true
migration_dependencies:
required:
- d6_user
- d6_node_type
- d6_node_settings
- d6_filter_format
- language
optional:
- d6_field_instance_widget_settings
- d6_field_formatter_settings
- d6_upload_field_instance
provider: migrate_drupal

View file

@ -0,0 +1,24 @@
id: d6_node_type
label: Node type configuration
migration_tags:
- Drupal 6
source:
plugin: d6_node_type
constants:
preview: 1 # DRUPAL_OPTIONAL
create_body: false
process:
type: type
name: name
module: module
description: description
help: help
title_label: title_label
'preview_mode': 'constants/preview'
'display_submitted': display_submitted
'new_revision': 'options/revision'
'settings/node/options': options
create_body: has_body
create_body_label: body_label
destination:
plugin: entity:node_type

View file

@ -0,0 +1,38 @@
id: d6_view_modes
label: View modes
migration_tags:
- Drupal 6
source:
plugin: d6_view_mode
constants:
targetEntityType: node
status: true
process:
mode:
plugin: static_map
source: view_mode
map:
0: normal
1: preview
2: search_index
3: search_result
4: rss
5: print
teaser: teaser
full: full
label:
plugin: static_map
source: view_mode
map:
0: "Normal"
1: "Preview"
2: "Search index"
3: "Search result"
4: "RSS"
5: "Print"
teaser: "Teaser"
full: "Full"
targetEntityType: 'constants/targetEntityType'
status: 'constants/status'
destination:
plugin: entity:entity_view_mode

View file

@ -0,0 +1,34 @@
id: d7_node
label: Nodes
migration_tags:
- Drupal 7
deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
source:
plugin: d7_node
process:
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
nid: nid
vid: vid
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
destination:
plugin: entity:node
migration_dependencies:
required:
- d7_user
- d7_node_type
optional:
- d7_field_instance

View file

@ -0,0 +1,31 @@
id: d7_node_revision
label: Node revisions
migration_tags:
- Drupal 7
deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
source:
plugin: d7_node_revision
process:
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
nid: nid
vid: vid
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
destination:
plugin: entity_revision:node
migration_dependencies:
required:
- d7_node

View file

@ -0,0 +1,13 @@
id: d7_node_settings
label: Node configuration
migration_tags:
- Drupal 7
source:
plugin: variable
variables:
- node_admin_theme
process:
use_admin_theme: node_admin_theme
destination:
plugin: config
config_name: node.settings

View file

@ -0,0 +1,19 @@
id: d7_node_title_label
label: Node title label
migration_tags:
- Drupal 7
source:
plugin: d7_node_type
constants:
entity_type: node
field_name: title
process:
entity_type: 'constants/entity_type'
bundle: type
field_name: 'constants/field_name'
label: title_label
destination:
plugin: entity:base_field_override
migration_dependencies:
required:
- d7_node_type

View file

@ -0,0 +1,21 @@
id: d7_node_type
label: Node type configuration
migration_tags:
- Drupal 7
source:
plugin: d7_node_type
constants:
preview: 1 # DRUPAL_OPTIONAL
process:
type: type
name: name
description: description
help: help
title_label: title_label
preview_mode: 'constants/preview'
display_submitted: display_submitted
new_revision: 'options/revision'
create_body: create_body
create_body_label: body_label
destination:
plugin: entity:node_type