function lightning_layout_update_8010 in Lightning Layout 8.2
Installs the layout_builder_st module if needed.
File
- ./
lightning_layout.install, line 125 - Contains installation and update routines for Lightning Layout.
Code
function lightning_layout_update_8010() {
// The layout_builder_at and layout_builder_st modules cannot be installed
// on the same time.
// @see https://www.drupal.org/project/layout_builder_at
// @see https://www.drupal.org/project/layout_builder_st
$module_handler = Drupal::moduleHandler();
if ($module_handler
->moduleExists('language') && !$module_handler
->moduleExists('layout_builder_at')) {
Drupal::service('module_installer')
->install([
'layout_builder_st',
]);
}
}