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