X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fbootstrap_layouts%2Fsrc%2FPlugin%2FBootstrapLayouts%2FUpdates%2FBootstrapLayoutsUpdate8402.php;fp=web%2Fmodules%2Fcontrib%2Fbootstrap_layouts%2Fsrc%2FPlugin%2FBootstrapLayouts%2FUpdates%2FBootstrapLayoutsUpdate8402.php;h=9d7f0b20a37b316e404937c7180e1fb5ab4af0f2;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/Updates/BootstrapLayoutsUpdate8402.php b/web/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/Updates/BootstrapLayoutsUpdate8402.php new file mode 100644 index 000000000..9d7f0b20a --- /dev/null +++ b/web/modules/contrib/bootstrap_layouts/src/Plugin/BootstrapLayouts/Updates/BootstrapLayoutsUpdate8402.php @@ -0,0 +1,40 @@ +getId() !== 'bs_1col_stacked') { + return; + } + + $regions = [ + 'header' => 'top', + 'footer' => 'bottom', + ]; + foreach ($regions as $old_region => $new_region) { + if ($region = $layout->getRegion($old_region)) { + $layout->setRegion($new_region, $region); + $layout->unsetRegion($old_region); + } + } + } + +}