3 namespace Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\Updates;
5 use Drupal\bootstrap_layouts\BootstrapLayout;
6 use Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\BootstrapLayoutsUpdateBase;
9 * Bootstrap Layouts Update 8402
11 * Fix "1 Column (stacked)" regions.
13 * @BootstrapLayoutsUpdate(
14 * id = "bootstrap_layouts_update_8402",
18 class BootstrapLayoutsUpdate8402 extends BootstrapLayoutsUpdateBase {
23 public function processExistingLayout(BootstrapLayout $layout, array $data = [], $display_messages = TRUE) {
24 if ($layout->getId() !== 'bs_1col_stacked') {
32 foreach ($regions as $old_region => $new_region) {
33 if ($region = $layout->getRegion($old_region)) {
34 $layout->setRegion($new_region, $region);
35 $layout->unsetRegion($old_region);