You are here

function devel_update_8002 in Devel 4.x

Same name and namespace in other branches
  1. 8.3 devel.install \devel_update_8002()
  2. 8 devel.install \devel_update_8002()
  3. 8.2 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);
}