You are here

d7_block.yml in Drupal 9

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