You are here

d7_styleswitcher_block.yml in Style Switcher 8.2

Same filename and directory in other branches
  1. 3.0.x migrations/d7_styleswitcher_block.yml
migrations/d7_styleswitcher_block.yml

File

migrations/d7_styleswitcher_block.yml
View source
  1. id: d7_styleswitcher_block
  2. label: Style Switcher block
  3. migration_tags:
  4. - Drupal 7
  5. - Configuration
  6. source:
  7. plugin: block
  8. process:
  9. plugin:
  10. -
  11. plugin: static_map
  12. source: module
  13. map:
  14. styleswitcher: styleswitcher_styleswitcher
  15. # Skip all other blocks.
  16. default_value: false
  17. -
  18. plugin: skip_on_empty
  19. method: row
  20. # Block status is not a thing in Drupal 8, so this is how we skip over
  21. # disabled blocks.
  22. status:
  23. plugin: skip_on_empty
  24. method: row
  25. source: status
  26. id:
  27. -
  28. plugin: concat
  29. source:
  30. - theme
  31. - module
  32. - delta
  33. delimiter: _
  34. -
  35. plugin: machine_name
  36. field: id
  37. theme:
  38. plugin: block_theme
  39. source:
  40. - theme
  41. - default_theme
  42. - admin_theme
  43. region:
  44. plugin: block_region
  45. source:
  46. - theme
  47. - '@theme'
  48. - region
  49. map:
  50. bartik:
  51. bartik:
  52. # Bartik 7.x --> Bartik 8.x
  53. featured: featured_top
  54. triptych_first: featured_bottom_first
  55. triptych_middle: featured_bottom_second
  56. triptych_last: featured_bottom_third
  57. footer_firstcolumn: footer_first
  58. footer_secondcolumn: footer_second
  59. footer_thirdcolumn: footer_third
  60. footer_fourthcolumn: footer_fourth
  61. footer: footer_fifth
  62. # If mapping fails, put the block in the content region.
  63. default_value: content
  64. weight: weight
  65. settings:
  66. plugin: block_settings
  67. source:
  68. - '@plugin'
  69. - delta
  70. - settings
  71. - title
  72. visibility:
  73. plugin: block_visibility
  74. source:
  75. - visibility
  76. - pages
  77. - roles
  78. # If the block uses PHP visibility, don't migrate it unless the PHP module
  79. # is enabled.
  80. skip_php: true
  81. destination:
  82. plugin: entity:block
  83. migration_dependencies:
  84. optional:
  85. - d7_user_role