1 system.install system_update_1090()

Set a default value for the new user_editor_role setting on existing sites.

Related topics

File

core/modules/system/system.install, line 3460
Install, update and uninstall functions for the system module.

Code

function system_update_1090() {
  $config = config('system.core');
  if ($config->get('user_editor_role') === NULL) {
    $config->set('user_editor_role', '');
    $config->save();
  }
}