migrate_plus.migration.upgrade_default_language.yml 956 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. uuid: f6043e5b-f2e8-4b85-92a8-4d96c17042e7
  2. langcode: fr
  3. status: true
  4. dependencies: { }
  5. id: upgrade_default_language
  6. class: Drupal\migrate\Plugin\Migration
  7. field_plugin_method: null
  8. cck_plugin_method: null
  9. migration_tags:
  10. - 'Drupal 6'
  11. - 'Drupal 7'
  12. migration_group: migrate_drupal_6
  13. label: 'Default language'
  14. source:
  15. plugin: variable
  16. variables:
  17. - language_default
  18. source_module: locale
  19. process:
  20. default_langcode:
  21. -
  22. plugin: default_value
  23. source: language_default
  24. default_value:
  25. language: en
  26. -
  27. plugin: callback
  28. callable:
  29. - \Drupal\Component\Serialization\Json
  30. - encode
  31. -
  32. plugin: callback
  33. callable:
  34. - \Drupal\Component\Serialization\Json
  35. - decode
  36. -
  37. plugin: extract
  38. index:
  39. - language
  40. destination:
  41. plugin: default_langcode
  42. config_name: system.site
  43. migration_dependencies:
  44. required:
  45. - upgrade_language
  46. optional: { }