X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fbootstrap_layouts%2Fbootstrap_layouts.install;fp=web%2Fmodules%2Fcontrib%2Fbootstrap_layouts%2Fbootstrap_layouts.install;h=e616ee6d211e99290c6753c7172969b29486e4e1;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/bootstrap_layouts/bootstrap_layouts.install b/web/modules/contrib/bootstrap_layouts/bootstrap_layouts.install new file mode 100644 index 000000000..e616ee6d2 --- /dev/null +++ b/web/modules/contrib/bootstrap_layouts/bootstrap_layouts.install @@ -0,0 +1,50 @@ +has('plugin.manager.bootstrap_layouts')) { + drupal_flush_all_caches(); + } + + /** @var \Drupal\bootstrap_layouts\BootstrapLayoutsManager $bootstrap_layouts_manager */ + if ($manager = $container->get('plugin.manager.bootstrap_layouts')) { + $manager->update($schema); + } + else { + throw new Exception('Unable to load the "plugin.manager.bootstrap_layouts" service.'); + } +} + +/** + * Upgrade existing Bootstrap Layout instances. + */ +function bootstrap_layouts_update_8401() { + /** @see \Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\Updates\BootstrapLayoutsUpdate8401 */ + _bootstrap_layouts_update(8401); +} + +/** + * Fix "1 Column (stacked)" regions. + */ +function bootstrap_layouts_update_8402() { + /** @see \Drupal\bootstrap_layouts\Plugin\BootstrapLayouts\Updates\BootstrapLayoutsUpdate8402 */ + _bootstrap_layouts_update(8402); +}