default_language.yml 831 B

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