2530ebcee882095202c51b164c50c5e8b8be184d
[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   source_module: language
10 process:
11   session/parameter:
12     plugin: default_value
13     default_value: 'language'
14   selected_langcode:
15     plugin: default_value
16     default_value: 'site_default'
17   url/source:
18     plugin: static_map
19     source: language_negotiation
20     default_value: path_prefix
21     map:
22       # LANGUAGE_NEGOTIATION_NONE = 0
23       # LANGUAGE_NEGOTIATION_PATH_DEFAULT = 1
24       # LANGUAGE_NEGOTIATION_PATH = 2
25       # LANGUAGE_NEGOTIATION_DOMAIN = 3
26       0: path_prefix
27       1: path_prefix
28       2: path_prefix
29       3: domain
30 destination:
31   plugin: config
32   config_name: language.negotiation
33 migration_dependencies:
34   required:
35     - language