function bigmenu_post_update_update_settings in Big Menu 8
Same name and namespace in other branches
- 2.x bigmenu.post_update.php \bigmenu_post_update_update_settings()
Install new bigmenu settings.
File
- ./
bigmenu.post_update.php, line 11 - The bigmenu post update hook file.
Code
function bigmenu_post_update_update_settings() {
$config = \Drupal::configFactory()
->getEditable('bigmenu.settings');
if ($config
->get('max_depth') === NULL) {
$config
->set('max_depth', 1)
->save(TRUE);
}
}