function _locale_refresh_configuration
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \_locale_refresh_configuration()
- 11.x core/modules/locale/locale.module \_locale_refresh_configuration()
- 9 core/modules/locale/locale.module \_locale_refresh_configuration()
- 8.9.x core/modules/locale/locale.module \_locale_refresh_configuration()
Refreshes configuration after string translations have been updated.
Parameters
array $langcodes: Language codes for updated translations.
array $lids: List of string identifiers that have been updated / created.
Deprecated
in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement.
See also
https://www.drupal.org/node/3619103
File
-
core/
modules/ locale/ locale.module, line 644
Code
function _locale_refresh_configuration(array $langcodes, array $lids) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.5.0 and is removed from drupal:13.0.0. There is no replacement. See https://www.drupal.org/node/3619103', E_USER_DEPRECATED);
$locale_config_manager = \Drupal::service('locale.config_manager');
if ($lids && $langcodes && $names = $locale_config_manager->getStringNames($lids)) {
$locale_config_manager->updateConfigTranslations($names, $langcodes);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.