menu_lock-1.0.0-rc1/menu_lock.install
menu_lock.install
<?php
/**
* @file
* Install hooks for module menu_lock.
*/
/**
* Implements hook_install().
*/
function menu_lock_install(): void {
// Weight should be higher than menu_ui as we override the behaviour of this
// module.
$extension_config = \Drupal::configFactory()->get('core.extension');
$menu_ui_weight = $extension_config->get('module.menu_ui');
module_set_weight('menu_lock', $menu_ui_weight + 1);
}
