You are here

d7_block.yml in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/block/migration_templates/d7_block.yml
core/modules/block/migration_templates/d7_block.yml

File

core/modules/block/migration_templates/d7_block.yml
View source
  1. id: d7_block
  2. label: Blocks
  3. migration_tags:
  4. - Drupal 7
  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. -
  16. plugin: concat
  17. source:
  18. - theme
  19. - module
  20. - delta
  21. delimiter: _
  22. plugin:
  23. -
  24. plugin: static_map
  25. bypass: true
  26. source:
  27. - module
  28. - delta
  29. map:
  30. book:
  31. navigation: book_navigation
  32. comment:
  33. recent: views_block:comments_recent-block_1
  34. forum:
  35. active: forum_active_block
  36. new: forum_new_block
  37. # locale:
  38. # 0: language_block
  39. node:
  40. syndicate: node_syndicate_block
  41. search:
  42. form: search_form_block
  43. statistics:
  44. popular: statistics_popular_block
  45. system:
  46. main: system_main_block
  47. 'powered-by': system_powered_by_block
  48. user:
  49. login: user_login_block
  50. # 1: system_menu_block:tools
  51. new: views_block:who_s_new-block_1
  52. online: 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. - region
  68. - theme
  69. - '@theme'
  70. region_map:
  71. left: sidebar_first
  72. right: sidebar_second
  73. sidebar_first: sidebar_first
  74. sidebar_second: sidebar_second
  75. help: help
  76. header: header
  77. footer: footer
  78. label: title
  79. weight: weight
  80. settings:
  81. plugin: block_settings
  82. source:
  83. - '@plugin'
  84. - delta
  85. - settings
  86. visibility:
  87. plugin: block_visibility
  88. source:
  89. - visibility
  90. - pages
  91. - roles
  92. # If the block uses PHP visibility, don't migrate it unless the PHP module
  93. # is enabled.
  94. skip_php: true
  95. destination:
  96. plugin: entity:block
  97. migration_dependencies:
  98. optional:
  99. - d7_custom_block
  100. - d7_user_role