function devel_update_8002 in Devel 8
Same name and namespace in other branches
- 8.3 devel.install \devel_update_8002()
- 8.2 devel.install \devel_update_8002()
- 4.x devel.install \devel_update_8002()
Add enforced dependencies to system.menu.devel
File
- ./
devel.install, line 44 - Install, update and uninstall functions for the devel module.
Code
function devel_update_8002() {
$config = \Drupal::configFactory()
->getEditable('system.menu.devel');
$dependencies = $config
->get('dependencies');
$dependencies['enforced']['module'][] = 'devel';
$config
->set('dependencies', $dependencies)
->save(TRUE);
}