Version 1
[yaffs-website] / web / modules / contrib / bootstrap_layouts / src / Plugin / BootstrapLayouts / Updates / bootstrap_layouts.update.8401.yml
diff --git a/web/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/Updates/bootstrap_layouts.update.8401.yml b/web/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/Updates/bootstrap_layouts.update.8401.yml
new file mode 100644 (file)
index 0000000..012ea6f
--- /dev/null
@@ -0,0 +1,342 @@
+# Bootstrap Layouts Update Map.
+# This map is used to convert previous 8.x-3.x layouts to 8.x-4.x layouts.
+# @see \Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\Updates\BootstrapLayoutsUpdate8401::processExistingLayout()
+bootstrap_layouts_update_map:
+  # One column.
+  bootstrap_12:
+    id: bs_1col
+    regions:
+      main: main
+    classes:
+      main:
+        - col-sm-12
+
+  # Two columns.
+  bootstrap_1_11:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-1
+      right:
+        - col-sm-11
+
+  bootstrap_2_10:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-2
+      right:
+        - col-sm-10
+
+  bootstrap_3_9:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-3
+      right:
+        - col-sm-9
+
+  bootstrap_4_8:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-4
+      right:
+        - col-sm-8
+
+  bootstrap_5_7:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-5
+      right:
+        - col-sm-7
+
+  bootstrap_6_6:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-6
+      right:
+        - col-sm-6
+
+  bootstrap_7_5:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-7
+      right:
+        - col-sm-5
+
+  bootstrap_8_4:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-8
+      right:
+        - col-sm-4
+
+  bootstrap_9_3:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-9
+      right:
+        - col-sm-3
+
+  bootstrap_10_2:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-10
+      right:
+        - col-sm-2
+
+  bootstrap_11_1:
+    id: bs_2col
+    regions:
+      sidebar_left: left
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-11
+      right:
+        - col-sm-1
+
+  # Two columns (stacked).
+  bootstrap_6_6_stacked:
+    id: bs_2col_stacked
+    regions:
+      top: top
+      sidebar_left: left
+      sidebar_right: right
+      bottom: bottom
+    classes:
+      top:
+        - col-sm-12
+      left:
+        - col-sm-6
+      right:
+        - col-sm-6
+      bottom:
+        - col-sm-12
+
+  # Two columns (bricked).
+  bootstrap_6_6_bricks:
+    id: bs_2col_bricked
+    regions:
+      top: top
+      upper_left: top_left
+      upper_right: top_right
+      middle: middle
+      lower_left: bottom_left
+      lower_right: bottom_right
+      bottom: bottom
+    classes:
+      top:
+        - col-sm-12
+      top_left:
+        - col-sm-6
+      top_right:
+        - col-sm-6
+      middle:
+        - col-sm-12
+      bottom_left:
+        - col-sm-6
+      bottom_right:
+        - col-sm-6
+      bottom:
+        - col-sm-12
+
+  # Three columns.
+  bootstrap_2_8_2:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-2
+      middle:
+        - col-sm-8
+      right:
+        - col-sm-2
+
+  bootstrap_2_2_8:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-2
+      middle:
+        - col-sm-2
+      right:
+        - col-sm-8
+
+  bootstrap_8_2_2:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-8
+      middle:
+        - col-sm-2
+      right:
+        - col-sm-2
+
+  bootstrap_3_6_3:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-3
+      middle:
+        - col-sm-6
+      right:
+        - col-sm-3
+
+  bootstrap_4_4_4:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-4
+      middle:
+        - col-sm-4
+      right:
+        - col-sm-4
+
+  bootstrap_5_5_2:
+    id: bs_3col
+    regions:
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+    classes:
+      left:
+        - col-sm-5
+      middle:
+        - col-sm-5
+      right:
+        - col-sm-2
+
+  # Three columns (stacked).
+  bootstrap_4_4_4_stacked:
+    id: bs_3col_stacked
+    regions:
+      top: top
+      sidebar_left: left
+      main: middle
+      sidebar_right: right
+      bottom: bottom
+    classes:
+      top:
+        - col-sm-12
+      left:
+        - col-sm-4
+      middle:
+        - col-sm-4
+      right:
+        - col-sm-4
+      bottom:
+        - col-sm-12
+
+  # Four columns.
+  bootstrap_3_3_3_3:
+    id: bs_4col
+    regions:
+      far_left: first
+      mid_left: second
+      mid_right: third
+      far_right: fourth
+    classes:
+      first:
+        - col-sm-3
+      second:
+        - col-sm-3
+      third:
+        - col-sm-3
+      fourth:
+        - col-sm-3
+
+  # Four columns (bricked).
+  bootstrap_3_3_3_3_bricks:
+    id: bs_4col_bricked
+    regions:
+      top: top
+      upper_far_left: top_first
+      upper_mid_left: top_second
+      upper_mid_right: top_third
+      upper_far_right: top_fourth
+      middle: middle
+      lower_far_left: bottom_first
+      lower_mid_left: bottom_second
+      lower_mid_right: bottom_third
+      lower_far_right: bottom_fourth
+      bottom: bottom
+    classes:
+      top:
+        - col-sm-12
+      top_first:
+        - col-sm-3
+      top_second:
+        - col-sm-3
+      top_third:
+        - col-sm-3
+      top_fourth:
+        - col-sm-3
+      middle:
+        - col-sm-12
+      bottom_first:
+        - col-sm-3
+      bottom_second:
+        - col-sm-3
+      bottom_third:
+        - col-sm-3
+      bottom_fourth:
+        - col-sm-3
+      bottom:
+        - col-sm-12