system_site.yml

Same filename in other branches
  1. 8.9.x core/modules/system/migrations/system_site.yml
  2. 10 core/modules/system/migrations/system_site.yml
  3. 11.x 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. - admin_compact_mode
  20. source_module: system
  21. process:
  22. name: site_name
  23. mail: site_mail
  24. slogan: site_slogan
  25. 'page/front':
  26. -
  27. plugin: concat
  28. source:
  29. - constants/slash
  30. - site_frontpage
  31. -
  32. plugin: static_map
  33. map:
  34. # Drupal 6 and Drupal 7 default site_frontpage is 'node'. If this
  35. # variable is set to 'node', to an empty string, or it is completely
  36. # missing, we want to migrate the equivalent Drupal 9 value, which is
  37. # '/node'.
  38. '/': '/node'
  39. bypass: true
  40. 'page/403':
  41. -
  42. plugin: concat
  43. source:
  44. - constants/slash
  45. - site_403
  46. -
  47. plugin: static_map
  48. map:
  49. '/': ''
  50. bypass: true
  51. 'page/404':
  52. -
  53. plugin: concat
  54. source:
  55. - constants/slash
  56. - site_404
  57. -
  58. plugin: static_map
  59. map:
  60. '/': ''
  61. bypass: true
  62. weight_select_max:
  63. plugin: default_value
  64. source: drupal_weight_select_max
  65. strict: true
  66. default_value: 100
  67. admin_compact_mode: admin_compact_mode
  68. destination:
  69. plugin: config
  70. config_name: system.site

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