Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,47 @@
|
|||
id: d6_language_content_settings
|
||||
label: Drupal 6 language content settings
|
||||
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
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
|
|
@ -0,0 +1,34 @@
|
|||
id: d6_language_negotiation_settings
|
||||
label: Language negotiation settings
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- language_negotiation
|
||||
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
|
|
@ -0,0 +1,52 @@
|
|||
id: d6_language_types
|
||||
label: Language types
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- language_negotiation
|
||||
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
|
|
@ -0,0 +1,46 @@
|
|||
id: d7_language_content_settings
|
||||
label: Drupal 7 language content settings
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
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'
|
||||
-
|
||||
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:
|
||||
- d7_node_type
|
|
@ -0,0 +1,32 @@
|
|||
id: d7_language_negotiation_settings
|
||||
label: Language negotiation settings
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- locale_language_negotiation_session_param
|
||||
- locale_language_negotiation_url_part
|
||||
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
|
|
@ -0,0 +1,40 @@
|
|||
id: d7_language_types
|
||||
label: Language types
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
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
|
||||
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
|
|
@ -0,0 +1,38 @@
|
|||
id: default_language
|
||||
label: Default language
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Drupal 7
|
||||
source:
|
||||
plugin: variable
|
||||
variables:
|
||||
- language_default
|
||||
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
|
19
web/core/modules/language/migration_templates/language.yml
Normal file
19
web/core/modules/language/migration_templates/language.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
id: language
|
||||
label: Languages
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Drupal 7
|
||||
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
|
|
@ -0,0 +1,26 @@
|
|||
id: language_prefixes_and_domains
|
||||
label: Language prefixes and domains
|
||||
migration_tags:
|
||||
- Drupal 6
|
||||
- Drupal 7
|
||||
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
|
Reference in a new issue