abc71f68f9d51a6b743589335aad155ca15f8ce7
[yaffs-website] / web / core / modules / language / migration_templates / d6_language_negotiation_settings.yml
1 id: d6_language_negotiation_settings
2 label: Language negotiation settings
3 migration_tags:
4   - Drupal 6
5 source:
6   plugin: variable
7   variables:
8     - language_negotiation
9 process:
10   session/parameter:
11     plugin: default_value
12     default_value: 'language'
13   selected_langcode:
14     plugin: default_value
15     default_value: 'site_default'
16   url/source:
17     plugin: static_map
18     source: language_negotiation
19     default_value: path_prefix
20     map:
21       # LANGUAGE_NEGOTIATION_NONE = 0
22       # LANGUAGE_NEGOTIATION_PATH_DEFAULT = 1
23       # LANGUAGE_NEGOTIATION_PATH = 2
24       # LANGUAGE_NEGOTIATION_DOMAIN = 3
25       0: path_prefix
26       1: path_prefix
27       2: path_prefix
28       3: domain
29 destination:
30   plugin: config
31   config_name: language.negotiation
32 migration_dependencies:
33   required:
34     - language