You are here

d6_block.yml in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/block/migrations/d6_block.yml
core/modules/block/migrations/d6_block.yml

File

core/modules/block/migrations/d6_block.yml
View source
  1. id: d6_block
  2. label: Blocks
  3. migration_tags:
  4. - Drupal 6
  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. # We need something unique, so aggregator, aggregator_1 etc will do.
  17. plugin: make_unique_entity_field
  18. entity_type: block
  19. field: id
  20. postfix: _
  21. length: 29
  22. source: module
  23. plugin:
  24. -
  25. plugin: static_map
  26. bypass: true
  27. source:
  28. - module
  29. - delta
  30. map:
  31. book:
  32. 0: book_navigation
  33. comment:
  34. 0: views_block:comments_recent-block_1
  35. forum:
  36. 0: forum_active_block
  37. 1: forum_new_block
  38. locale:
  39. 0: language_block
  40. node:
  41. 0: node_syndicate_block
  42. search:
  43. 0: search_form_block
  44. statistics:
  45. 0: statistics_popular_block
  46. system:
  47. 0: system_powered_by_block
  48. user:
  49. 0: user_login_block
  50. 1: system_menu_block:tools
  51. 2: views_block:who_s_new-block_1
  52. 3: views_block:who_s_online-who_s_online_block
  53. -
  54. plugin: block_plugin_id
  55. -
  56. plugin: skip_on_empty
  57. method: row
  58. theme:
  59. plugin: block_theme
  60. source:
  61. - theme
  62. - default_theme
  63. - admin_theme
  64. region:
  65. plugin: block_region
  66. source:
  67. - theme
  68. - '@theme'
  69. - region
  70. map:
  71. garland:
  72. bartik:
  73. # Garland 6.x --> Bartik 8.x
  74. header: header
  75. footer: footer_fifth
  76. left: sidebar_first
  77. right: sidebar_second
  78. # If mapping fails, put the block in the content region.
  79. default_value: content
  80. weight: weight
  81. settings:
  82. plugin: block_settings
  83. source:
  84. - '@plugin'
  85. - delta
  86. - settings
  87. - title
  88. visibility:
  89. plugin: block_visibility
  90. source:
  91. - visibility
  92. - pages
  93. - roles
  94. # If the block uses PHP visibility, don't migrate it unless the PHP module
  95. # is enabled.
  96. skip_php: true
  97. destination:
  98. plugin: entity:block
  99. migration_dependencies:
  100. required:
  101. - menu
  102. - d6_custom_block
  103. - d6_user_role