1 system.install system_update_1089()

Enable Admin Bar's Language Switcher component if this is a multilingual site.

Related topics

File

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

Code

function system_update_1089() {
  if (!(module_exists('locale') && language_multilingual())) {
    return;
  }
  $config = config('admin_bar.settings');
  $components = $config->get('components');
  $components[] = 'admin_bar.locale';
  $config->set('components', array_unique($components));
  $config->save();
}