Same filename and directory in other branches
  1. 8.9.x core/modules/block/migrations/d7_block.yml
  2. 9 core/modules/block/migrations/d7_block.yml
core/modules/block/migrations/d7_block.yml

File

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