You are here

d7_block.yml in Drupal 10

core/modules/block/migrations/d7_block.yml

File

core/modules/block/migrations/d7_block.yml
View source
  1. id: d7_block
  2. label: Blocks
  3. # This configuration migration depends on the d7_custom_block content migration.
  4. migration_tags:
  5. - Drupal 7
  6. - Configuration
  7. source:
  8. plugin: block
  9. process:
  10. # Block status is not a thing in Drupal 8, so this is how we skip over
  11. # disabled blocks.
  12. status:
  13. plugin: skip_on_empty
  14. method: row
  15. source: status
  16. id:
  17. -
  18. plugin: concat
  19. source:
  20. - theme
  21. - module
  22. - delta
  23. delimiter: _
  24. -
  25. plugin: machine_name
  26. field: id
  27. plugin:
  28. -
  29. plugin: static_map
  30. bypass: true
  31. source:
  32. - module
  33. - delta
  34. map:
  35. book:
  36. navigation: book_navigation
  37. comment:
  38. recent: views_block:comments_recent-block_1
  39. forum:
  40. active: forum_active_block
  41. new: forum_new_block
  42. # locale:
  43. # 0: language_block
  44. node:
  45. syndicate: node_syndicate_block
  46. search:
  47. form: search_form_block
  48. statistics:
  49. popular: statistics_popular_block
  50. system:
  51. main: system_main_block
  52. 'powered-by': system_powered_by_block
  53. user:
  54. login: user_login_block
  55. # 1: system_menu_block:tools
  56. new: views_block:who_s_new-block_1
  57. online: views_block:who_s_online-who_s_online_block
  58. -
  59. plugin: block_plugin_id
  60. -
  61. plugin: skip_on_empty
  62. method: row
  63. theme:
  64. plugin: block_theme
  65. source:
  66. - theme
  67. - default_theme
  68. - admin_theme
  69. region:
  70. plugin: block_region
  71. source:
  72. - theme
  73. - '@theme'
  74. - region
  75. map:
  76. bartik:
  77. # Bartik 7.x --> Olivero 9.4.x
  78. olivero:
  79. featured: highlighted
  80. triptych_first: content_below
  81. triptych_middle: content_below
  82. triptych_last: content_below
  83. footer_firstcolumn: footer_top
  84. footer_secondcolumn: footer_top
  85. footer_thirdcolumn: footer_top
  86. footer_fourthcolumn: footer_top
  87. footer: footer_bottom
  88. seven:
  89. # Seven 7.x --> Claro 9.4.x
  90. claro:
  91. header: 'header'
  92. pre_content: 'pre_content'
  93. breadcrumb: 'breadcrumb'
  94. highlighted: 'highlighted'
  95. help: 'help'
  96. content: 'content'
  97. page_top: 'page_top'
  98. page_bottom: 'page_bottom'
  99. sidebar_first: 'sidebar_first'
  100. # If mapping fails, put the block in the content region.
  101. default_value: content
  102. weight: weight
  103. settings:
  104. plugin: block_settings
  105. source:
  106. - '@plugin'
  107. - delta
  108. - settings
  109. - title
  110. visibility:
  111. plugin: block_visibility
  112. source:
  113. - visibility
  114. - pages
  115. - roles
  116. # If the block uses PHP visibility, don't migrate it unless the PHP module
  117. # is enabled.
  118. skip_php: true
  119. destination:
  120. plugin: entity:block
  121. migration_dependencies:
  122. optional:
  123. - d7_custom_block
  124. - d7_user_role