Mercurial > hg > isophonics-drupal-site
diff core/modules/language/migration_templates/default_language.yml @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/language/migration_templates/default_language.yml Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,39 @@ +id: default_language +label: Default language +migration_tags: + - Drupal 6 + - Drupal 7 +source: + plugin: variable + variables: + - language_default + source_module: locale +process: + default_langcode: + - + plugin: default_value + source: language_default + default_value: + 'language': 'en' + # Encode and decode to turn the default_language variable, which is + # an stdClass, into an array so it can be passed to extract. + - + plugin: callback + callable: + - '\Drupal\Component\Serialization\Json' + - 'encode' + - + plugin: callback + callable: + - '\Drupal\Component\Serialization\Json' + - 'decode' + - + plugin: extract + index: + - language +destination: + plugin: default_langcode + config_name: system.site +migration_dependencies: + required: + - language