d7_block.yml

Same filename in other branches
  1. 8.9.x core/modules/block/migrations/d7_block.yml
  2. 10 core/modules/block/migrations/d7_block.yml
  3. 11.x 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. plugin:
  29. -
  30. plugin: static_map
  31. bypass: true
  32. source:
  33. - module
  34. - delta
  35. map:
  36. book:
  37. navigation: book_navigation
  38. comment:
  39. recent: views_block:comments_recent-block_1
  40. forum:
  41. active: forum_active_block
  42. new: forum_new_block
  43. # locale:
  44. # 0: language_block
  45. node:
  46. syndicate: node_syndicate_block
  47. search:
  48. form: search_form_block
  49. statistics:
  50. popular: statistics_popular_block
  51. system:
  52. main: system_main_block
  53. 'powered-by': system_powered_by_block
  54. user:
  55. login: user_login_block
  56. # 1: system_menu_block:tools
  57. new: views_block:who_s_new-block_1
  58. online: views_block:who_s_online-who_s_online_block
  59. -
  60. plugin: block_plugin_id
  61. -
  62. plugin: skip_on_empty
  63. method: row
  64. theme:
  65. plugin: block_theme
  66. source:
  67. - theme
  68. - default_theme
  69. - admin_theme
  70. region:
  71. plugin: block_region
  72. source:
  73. - theme
  74. - '@theme'
  75. - region
  76. map:
  77. bartik:
  78. # Bartik 7.x --> Olivero 9.4.x
  79. olivero:
  80. featured: highlighted
  81. triptych_first: content_below
  82. triptych_middle: content_below
  83. triptych_last: content_below
  84. footer_firstcolumn: footer_top
  85. footer_secondcolumn: footer_top
  86. footer_thirdcolumn: footer_top
  87. footer_fourthcolumn: footer_top
  88. footer: footer_bottom
  89. seven:
  90. # Seven 7.x --> Claro 9.4.x
  91. claro:
  92. header: 'header'
  93. pre_content: 'pre_content'
  94. breadcrumb: 'breadcrumb'
  95. highlighted: 'highlighted'
  96. help: 'help'
  97. content: 'content'
  98. page_top: 'page_top'
  99. page_bottom: 'page_bottom'
  100. sidebar_first: 'sidebar_first'
  101. # If mapping fails, put the block in the content region.
  102. default_value: content
  103. weight: weight
  104. settings:
  105. plugin: block_settings
  106. source:
  107. - '@plugin'
  108. - delta
  109. - settings
  110. - title
  111. visibility:
  112. plugin: block_visibility
  113. source:
  114. - visibility
  115. - pages
  116. - roles
  117. # If the block uses PHP visibility, don't migrate it unless the PHP module
  118. # is enabled.
  119. skip_php: true
  120. destination:
  121. plugin: entity:block
  122. migration_dependencies:
  123. optional:
  124. - d7_custom_block
  125. - d7_user_role

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