1 user.install user_update_1011()

Update 'People' menus to 'User accounts'.

Related topics

File

core/modules/user/user.install, line 1118
Install, update and uninstall functions for the user module.

Code

function user_update_1011() {
  $config = config('views.view.user_admin');
  if ($config->get('display.default.display_options.title') == 'People') {
    $config->set('display.default.display_options.title', 'User accounts');
  }
  if ($config->get('display.page.display_options.tab_options.title') == 'People') {
    $config->set('display.page.display_options.tab_options.title', 'User accounts');
  }
  $config->save();
}