6d9171ae32de1a01e985a98f267bba95a19de39c
[yaffs-website] / web / core / modules / language / migrations / d6_language_content_settings.yml
1 id: d6_language_content_settings
2 label: Drupal 6 language content settings
3 migration_tags:
4   - Drupal 6
5   - Configuration
6 source:
7   plugin: d6_language_content_settings
8   constants:
9     target_type: 'node'
10 process:
11 # Ignore i18n_node_options_[node_type] options not available in Drupal 8,
12 # i18n_required_node and i18n_newnode_current
13   target_bundle: type
14   target_entity_type_id: 'constants/target_type'
15   default_langcode:
16     -
17       plugin: static_map
18       source: language_content_type
19       map:
20         0: NULL
21         1: 'current_interface'
22         2: 'current_interface'
23     -
24       plugin: skip_on_empty
25       method: row
26   language_alterable:
27     plugin: static_map
28     source: i18n_lock_node
29     map:
30       0: true
31       1: false
32   'third_party_settings/content_translation/enabled':
33     plugin: static_map
34     source: language_content_type
35     map:
36       # In the case of being 0, it will be skipped. We are not actually setting
37       # a null value.
38       0: NULL
39       1: false
40       2: true
41 destination:
42   plugin: entity:language_content_settings
43   content_translation_update_definitions:
44     - node
45 migration_dependencies:
46   required:
47     - d6_node_type