default_language.yml

Same filename in other branches
  1. 9 core/modules/language/migrations/default_language.yml
  2. 10 core/modules/language/migrations/default_language.yml
  3. 11.x core/modules/language/migrations/default_language.yml
core/modules/language/migrations/default_language.yml

File

core/modules/language/migrations/default_language.yml

View source
  1. id: default_language
  2. label: Default language
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: variable
  9. variables:
  10. - language_default
  11. source_module: locale
  12. process:
  13. default_langcode:
  14. -
  15. plugin: default_value
  16. source: language_default
  17. default_value:
  18. 'language': 'en'
  19. # Encode and decode to turn the default_language variable, which is
  20. # an stdClass, into an array so it can be passed to extract.
  21. -
  22. plugin: callback
  23. callable:
  24. - '\Drupal\Component\Serialization\Json'
  25. - 'encode'
  26. -
  27. plugin: callback
  28. callable:
  29. - '\Drupal\Component\Serialization\Json'
  30. - 'decode'
  31. -
  32. plugin: extract
  33. index:
  34. - language
  35. destination:
  36. plugin: default_langcode
  37. config_name: system.site
  38. migration_dependencies:
  39. required:
  40. - language

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.