bigmenu.post_update.php in Big Menu 2.x
Same filename and directory in other branches
The bigmenu post update hook file.
File
bigmenu.post_update.phpView source
<?php
/**
* @file
* The bigmenu post update hook file.
*/
/**
* Install new bigmenu settings.
*/
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);
}
}
Functions
Name | Description |
---|---|
bigmenu_post_update_update_settings | Install new bigmenu settings. |