system_site.yml

Same filename and directory in other branches
  1. 10 core/modules/system/migrations/system_site.yml
  2. 9 core/modules/system/migrations/system_site.yml
  3. 8.9.x core/modules/system/migrations/system_site.yml
  4. main core/modules/system/migrations/system_site.yml
core/modules/system/migrations/system_site.yml

File

core/modules/system/migrations/system_site.yml

View source
  1. id: system_site
  2. label: Site configuration
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: variable
  9. constants:
  10. slash: '/'
  11. variables:
  12. - site_name
  13. - site_mail
  14. - site_slogan
  15. - site_frontpage
  16. - site_403
  17. - site_404
  18. - drupal_weight_select_max
  19. source_module: system
  20. process:
  21. name: site_name
  22. mail: site_mail
  23. slogan: site_slogan
  24. 'page/front':
  25. -
  26. plugin: concat
  27. source:
  28. - constants/slash
  29. - site_frontpage
  30. -
  31. plugin: static_map
  32. map:
  33. # Drupal 6 and Drupal 7 default site_frontpage is 'node'. If this
  34. # variable is set to 'node', to an empty string, or it is completely
  35. # missing, we want to migrate the equivalent Drupal 9 value, which is
  36. # '/node'.
  37. '/': '/node'
  38. bypass: true
  39. 'page/403':
  40. -
  41. plugin: concat
  42. source:
  43. - constants/slash
  44. - site_403
  45. -
  46. plugin: static_map
  47. map:
  48. '/': ''
  49. bypass: true
  50. 'page/404':
  51. -
  52. plugin: concat
  53. source:
  54. - constants/slash
  55. - site_404
  56. -
  57. plugin: static_map
  58. map:
  59. '/': ''
  60. bypass: true
  61. weight_select_max:
  62. plugin: default_value
  63. source: drupal_weight_select_max
  64. strict: true
  65. default_value: 100
  66. destination:
  67. plugin: config
  68. config_name: system.site

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