Update Composer, update everything

This commit is contained in:
Oliver Davies 2018-11-23 12:29:20 +00:00
parent ea3e94409f
commit dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions

View file

@ -0,0 +1,56 @@
id: d6_node
label: Nodes
audit: true
migration_tags:
- Drupal 6
- Content
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_lookup
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,43 @@
id: d6_node_revision
label: Node revisions
audit: true
migration_tags:
- Drupal 6
- Content
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_lookup
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,23 @@
id: d6_node_setting_promote
label: Node type 'promote' setting
migration_tags:
- Drupal 6
- Configuration
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,23 @@
id: d6_node_setting_status
label: Node type 'status' setting
migration_tags:
- Drupal 6
- Configuration
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,23 @@
id: d6_node_setting_sticky
label: Node type 'sticky' setting
migration_tags:
- Drupal 6
- Configuration
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,15 @@
id: d6_node_settings
label: Node configuration
migration_tags:
- Drupal 6
- Configuration
source:
plugin: variable
variables:
- node_admin_theme
source_module: node
process:
use_admin_theme: node_admin_theme
destination:
plugin: config
config_name: node.settings

View file

@ -0,0 +1,27 @@
id: d6_node_type
label: Node type configuration
migration_tags:
- Drupal 6
- Configuration
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
'third_party_settings/menu_ui/available_menus': available_menus
'third_party_settings/menu_ui/parent': parent
destination:
plugin: entity:node_type

View file

@ -0,0 +1,39 @@
id: d6_view_modes
label: View modes
migration_tags:
- Drupal 6
- Configuration
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,40 @@
id: d7_node
label: Nodes
audit: true
migration_tags:
- Drupal 7
- Content
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.
# In D7, 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\d7\Node::prepareRow().
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
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
- d7_comment_field_instance

View file

@ -0,0 +1,33 @@
id: d7_node_revision
label: Node revisions
audit: true
migration_tags:
- Drupal 7
- Content
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,15 @@
id: d7_node_settings
label: Node configuration
migration_tags:
- Drupal 7
- Configuration
source:
plugin: variable
variables:
- node_admin_theme
source_module: node
process:
use_admin_theme: node_admin_theme
destination:
plugin: config
config_name: node.settings

View file

@ -0,0 +1,20 @@
id: d7_node_title_label
label: Node title label
migration_tags:
- Drupal 7
- Configuration
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,24 @@
id: d7_node_type
label: Node type configuration
migration_tags:
- Drupal 7
- Configuration
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
'third_party_settings/menu_ui/available_menus': available_menus
'third_party_settings/menu_ui/parent': parent
destination:
plugin: entity:node_type