function locale_system_set_config_langcodes

Same name in other branches
  1. 9 core/modules/locale/locale.module \locale_system_set_config_langcodes()
  2. 8.9.x core/modules/locale/locale.module \locale_system_set_config_langcodes()
  3. 11.x core/modules/locale/locale.module \locale_system_set_config_langcodes()

Updates default configuration when new modules or themes are installed.

2 calls to locale_system_set_config_langcodes()
LocaleConfigSubscriberTest::setUp in core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
UserMailNotifyTest::testUserRecoveryMailLanguage in core/modules/user/tests/src/Kernel/UserMailNotifyTest.php
Tests recovery email content and token langcode is aligned.

File

core/modules/locale/locale.module, line 368

Code

function locale_system_set_config_langcodes() {
    \Drupal::service('locale.config_manager')->updateDefaultConfigLangcodes();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.