You are here

d6_block.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/block/migration_templates/d6_block.yml
core/modules/block/migration_templates/d6_block.yml

File

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