Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / language / migration_templates / default_language.yml
1 id: default_language
2 label: Default language
3 migration_tags:
4   - Drupal 6
5   - Drupal 7
6 source:
7   plugin: variable
8   variables:
9     - language_default
10   source_module: locale
11 process:
12   default_langcode:
13     -
14       plugin: default_value
15       source: language_default
16       default_value:
17         'language': 'en'
18     # Encode and decode to turn the default_language variable, which is
19     # an stdClass, into an array so it can be passed to extract.
20     -
21       plugin: callback
22       callable:
23         - '\Drupal\Component\Serialization\Json'
24         - 'encode'
25     -
26       plugin: callback
27       callable:
28         - '\Drupal\Component\Serialization\Json'
29         - 'decode'
30     -
31       plugin: extract
32       index:
33         - language
34 destination:
35   plugin: default_langcode
36   config_name: system.site
37 migration_dependencies:
38   required:
39     - language