d7_theme_settings.yml

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

File

core/modules/system/migrations/d7_theme_settings.yml

View source
  1. id: d7_theme_settings
  2. label: D7 theme settings
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: d7_theme_settings
  8. constants:
  9. config_suffix: '.settings'
  10. process:
  11. # Build the configuration name from the variable name, i.e.
  12. # theme_bartik_settings becomes bartik.settings.
  13. legacy_theme_name:
  14. -
  15. plugin: explode
  16. source: name
  17. delimiter: _
  18. -
  19. plugin: extract
  20. index:
  21. - 1
  22. theme_name:
  23. plugin: static_map
  24. source: '@legacy_theme_name'
  25. bypass: true
  26. map:
  27. bartik: olivero
  28. seven: claro
  29. configuration_name:
  30. plugin: concat
  31. source:
  32. - '@theme_name'
  33. - constants/config_suffix
  34. toggle_logo: theme_settings/toggle_logo
  35. toggle_name: value/toggle_name
  36. toggle_slogan: value/toggle_slogan
  37. toggle_node_user_picture: value/toggle_node_user_picture
  38. toggle_comment_user_picture: value/toggle_comment_user_picture
  39. toggle_comment_user_verification: value/toggle_comment_user_verification
  40. toggle_favicon: value/toggle_favicon
  41. default_logo: value/default_logo
  42. logo_path: value/logo_path
  43. logo_upload: value/logo_upload
  44. default_favicon: value/default_favicon
  45. favicon_path: value/favicon_path
  46. favicon_mimetype: value/favicon_mimetype
  47. # Ignore settings not present in Drupal 8.
  48. # value/favicon_upload
  49. # value/toggle_main_menu
  50. # value/toggle_secondary_menu
  51. destination:
  52. plugin: d7_theme_settings

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