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,21 @@
id: d6_language_content_menu_settings
label: Drupal 6 language content menu settings
migration_tags:
- Drupal 6
- Configuration
source:
plugin: extension
name: i18nmenu
constants:
target_type: 'menu_link_content'
langcode: 'site_default'
process:
target_entity_type_id: 'constants/target_type'
# menu_link_content has a bundle key but no bundle support so use the entity
# type as the bundle.
target_bundle: 'constants/target_type'
default_langcode: 'constants/langcode'
# Drupal 6 menus are translated when the i18nmenu module is enabled.
language_alterable: status
destination:
plugin: entity:language_content_settings

View file

@ -0,0 +1,47 @@
id: d6_language_content_settings
label: Drupal 6 language content settings
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_language_content_settings
constants:
target_type: 'node'
process:
# Ignore i18n_node_options_[node_type] options not available in Drupal 8,
# i18n_required_node and i18n_newnode_current
target_bundle: type
target_entity_type_id: 'constants/target_type'
default_langcode:
-
plugin: static_map
source: language_content_type
map:
0: NULL
1: 'current_interface'
2: 'current_interface'
-
plugin: skip_on_empty
method: row
language_alterable:
plugin: static_map
source: i18n_lock_node
map:
0: true
1: false
'third_party_settings/content_translation/enabled':
plugin: static_map
source: language_content_type
map:
# In the case of being 0, it will be skipped. We are not actually setting
# a null value.
0: NULL
1: false
2: true
destination:
plugin: entity:language_content_settings
content_translation_update_definitions:
- node
migration_dependencies:
required:
- d6_node_type

View file

@ -0,0 +1,53 @@
id: d6_language_content_taxonomy_vocabulary_settings
label: Drupal 6 language taxonomy vocabulary settings
migration_tags:
- Drupal 6
- Configuration
source:
plugin: d6_language_content_settings_taxonomy_vocabulary
constants:
target_type: 'taxonomy_term'
default_langcode: 'site_default'
process:
target_bundle:
-
plugin: migration_lookup
migration: d6_taxonomy_vocabulary
source: vid
-
plugin: skip_on_empty
method: row
# State is the value in the i18ntaxonomy_vocabulary array defined as:
# 0: No multilingual options.
# 1: Localizable terms. Run through the localization system.
# 2: Predefined language for a vocabulary and its terms.
# 3: Per-language terms, translatable (referencing terms with different
# languages) but not localizable.
language_alterable:
plugin: static_map
source: state
map:
0: false
1: true
2: false
3: true
'third_party_settings/content_translation/enabled':
plugin: static_map
source: state
map:
0: false
1: true
2: false
3: false
target_entity_type_id: 'constants/target_type'
default_langcode:
plugin: default_value
default_value: site_default
source: language
destination:
plugin: entity:language_content_settings
content_translation_update_definitions:
- taxonomy_term
migration_dependencies:
required:
- d6_taxonomy_vocabulary

View file

@ -0,0 +1,36 @@
id: d6_language_negotiation_settings
label: Language negotiation settings
migration_tags:
- Drupal 6
- Configuration
source:
plugin: variable
variables:
- language_negotiation
source_module: language
process:
session/parameter:
plugin: default_value
default_value: 'language'
selected_langcode:
plugin: default_value
default_value: 'site_default'
url/source:
plugin: static_map
source: language_negotiation
default_value: path_prefix
map:
# LANGUAGE_NEGOTIATION_NONE = 0
# LANGUAGE_NEGOTIATION_PATH_DEFAULT = 1
# LANGUAGE_NEGOTIATION_PATH = 2
# LANGUAGE_NEGOTIATION_DOMAIN = 3
0: path_prefix
1: path_prefix
2: path_prefix
3: domain
destination:
plugin: config
config_name: language.negotiation
migration_dependencies:
required:
- language

View file

@ -0,0 +1,54 @@
id: d6_language_types
label: Language types
migration_tags:
- Drupal 6
- Configuration
source:
plugin: variable
variables:
- language_negotiation
source_module: language
process:
all:
plugin: default_value
default_value:
- 'language_interface'
- 'language_content'
- 'language_url'
configurable:
plugin: default_value
default_value:
- 'language_interface'
negotiation/language_content/enabled:
plugin: default_value
default_value:
'language-interface': 0
negotiation/language_url/enabled:
plugin: default_value
default_value:
'language-url': 0
'language-url-fallback': 1
negotiation/language_interface/enabled:
plugin: static_map
source: language_negotiation
map:
# LANGUAGE_NEGOTIATION_NONE = 0
# LANGUAGE_NEGOTIATION_PATH_DEFAULT = 1
# LANGUAGE_NEGOTIATION_PATH = 2
# LANGUAGE_NEGOTIATION_DOMAIN = 3
0:
'language-selected': 0
1:
'language-url': 0
'language-selected': 1
2:
'language-url': 0
'language-user': 1
'language-browser': 2
'language-selected': 3
3:
'language-url': 0
'language-selected': 1
destination:
plugin: config
config_name: language.types

View file

@ -0,0 +1,50 @@
id: d7_language_content_settings
label: Drupal 7 language content settings
migration_tags:
- Drupal 7
- Configuration
source:
plugin: d7_language_content_settings
constants:
target_type: 'node'
process:
# Ignore i18n_node_options_[node_type] options not available in Drupal 8,
# i18n_required_node and i18n_newnode_current
target_bundle: type
target_entity_type_id: 'constants/target_type'
default_langcode:
-
plugin: static_map
source: language_content_type
map:
0: NULL
1: 'current_interface'
2: 'current_interface'
4: 'und'
default_value: NULL
-
plugin: skip_on_empty
method: row
language_alterable:
plugin: static_map
source: i18n_lock_node
map:
0: true
1: false
'third_party_settings/content_translation/enabled':
plugin: static_map
source: language_content_type
map:
# In the case of being 0, it will be skipped. We are not actually setting
# a null value.
0: NULL
1: false
2: true
4: true
destination:
plugin: entity:language_content_settings
content_translation_update_definitions:
- node
migration_dependencies:
required:
- d7_node_type

View file

@ -0,0 +1,34 @@
id: d7_language_negotiation_settings
label: Language negotiation settings
migration_tags:
- Drupal 7
- Configuration
source:
plugin: variable
variables:
- locale_language_negotiation_session_param
- locale_language_negotiation_url_part
source_module: locale
process:
session/parameter:
plugin: default_value
source: locale_language_negotiation_session_param
default_value: 'language'
selected_langcode:
plugin: default_value
default_value: 'site_default'
url/source:
plugin: static_map
source: locale_language_negotiation_url_part
default_value: path_prefix
map:
# LOCALE_LANGUAGE_NEGOTIATION_URL_PREFIX = 0
# LOCALE_LANGUAGE_NEGOTIATION_URL_DOMAIN = 1
0: path_prefix
1: domain
destination:
plugin: config
config_name: language.negotiation
migration_dependencies:
required:
- language

View file

@ -0,0 +1,42 @@
id: d7_language_types
label: Language types
migration_tags:
- Drupal 7
- Configuration
source:
plugin: variable
variables:
- language_types
- language_negotiation_language
- language_negotiation_language_content
- language_negotiation_language_url
- locale_language_providers_weight_language
- locale_language_providers_weight_language_content
- locale_language_providers_weight_language_url
source_module: language
process:
all:
plugin: language_types
source: language_types
configurable:
plugin: language_types
source: language_types
filter_configurable: true
negotiation/language_content:
plugin: language_negotiation
source:
- language_negotiation_language_content
- locale_language_providers_weight_language_content
negotiation/language_url:
plugin: language_negotiation
source:
- language_negotiation_language_url
- locale_language_providers_weight_language_url
negotiation/language_interface:
plugin: language_negotiation
source:
- language_negotiation_language
- locale_language_providers_weight_language
destination:
plugin: config
config_name: language.types

View file

@ -0,0 +1,40 @@
id: default_language
label: Default language
migration_tags:
- Drupal 6
- Drupal 7
- Configuration
source:
plugin: variable
variables:
- language_default
source_module: locale
process:
default_langcode:
-
plugin: default_value
source: language_default
default_value:
'language': 'en'
# Encode and decode to turn the default_language variable, which is
# an stdClass, into an array so it can be passed to extract.
-
plugin: callback
callable:
- '\Drupal\Component\Serialization\Json'
- 'encode'
-
plugin: callback
callable:
- '\Drupal\Component\Serialization\Json'
- 'decode'
-
plugin: extract
index:
- language
destination:
plugin: default_langcode
config_name: system.site
migration_dependencies:
required:
- language

View file

@ -0,0 +1,20 @@
id: language
label: Languages
migration_tags:
- Drupal 6
- Drupal 7
- Configuration
source:
plugin: language
process:
id: language
label: name
direction:
plugin: static_map
source: direction
map:
0: ltr
1: rtl
weight: weight
destination:
plugin: entity:configurable_language

View file

@ -0,0 +1,27 @@
id: language_prefixes_and_domains
label: Language prefixes and domains
migration_tags:
- Drupal 6
- Drupal 7
- Configuration
source:
plugin: language
fetch_all: true
domain_negotiation: true
process:
url/prefixes:
plugin: array_build
source: languages
key: language
value: prefix
url/domains:
plugin: language_domains
source: languages
key: language
value: domain
destination:
plugin: config
config_name: language.negotiation
migration_dependencies:
required:
- language