2016-09-14 12:57:47 +00:00
|
|
|
id: default_language
|
|
|
|
label: Default language
|
|
|
|
migration_tags:
|
|
|
|
- Drupal 6
|
|
|
|
- Drupal 7
|
Issue #2711099 by heddn, Jo Fitzgerald, edysmp, edgewl2, alexpott, Charlotte17, mikeryan, masipila, quietone, maxocub, phenaproxima: Categorize migrations according to their type
2018-02-15 06:27:23 +00:00
|
|
|
- Configuration
|
2016-09-14 12:57:47 +00:00
|
|
|
source:
|
|
|
|
plugin: variable
|
|
|
|
variables:
|
|
|
|
- language_default
|
Issue #2569805 by quietone, Jo Fitzgerald, mikeryan, joelpittet, heddn, Adita, Miguel.kode, iMiksu, tvb, maxocub, juancasantito, phenaproxima, alexpott, neclimdul, xjm: For Drupal migration, identify the source module
2017-08-15 05:08:32 +00:00
|
|
|
source_module: locale
|
2016-09-14 12:57:47 +00:00
|
|
|
process:
|
|
|
|
default_langcode:
|
|
|
|
-
|
2016-10-28 05:01:17 +00:00
|
|
|
plugin: default_value
|
2016-09-14 12:57:47 +00:00
|
|
|
source: language_default
|
2016-10-28 05:01:17 +00:00
|
|
|
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'
|
2016-09-14 12:57:47 +00:00
|
|
|
-
|
|
|
|
plugin: extract
|
|
|
|
index:
|
|
|
|
- language
|
|
|
|
destination:
|
|
|
|
plugin: default_langcode
|
|
|
|
config_name: system.site
|
|
|
|
migration_dependencies:
|
|
|
|
required:
|
|
|
|
- language
|