function varbase_update_8005 in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.4
Enable Settings Tray module.
File
- ./
varbase.install, line 171 - Install, update and uninstall functions for the Varbase installation profile.
Code
function varbase_update_8005() {
// Read the extension configuration.
$modules_data = \Drupal::config('core.extension')
->get('module');
// Unset the outside_in module.
if (isset($modules_data['outside_in'])) {
unset($modules_data['outside_in']);
}
// Save the configuration.
\Drupal::configFactory()
->getEditable('core.extension')
->set('module', $modules_data)
->save();
if (!\Drupal::moduleHandler()
->moduleExists('settings_tray')) {
\Drupal::service('module_installer')
->install([
'settings_tray',
], FALSE);
}
}