By nicxvan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.5.x
Introduced in version:
11.5.0
Issue links:
Description:
The following functions have been deprecated:
_locale_refresh_translations()_locale_refresh_configuration()_locale_strip_quotes()_locale_parse_js_file_locale_invalidate_js()_locale_rebuild_js()
The following functions have no replacement:
_locale_refresh_configuration()_locale_strip_quotes()
The following functions have a replacement:
-
Before:
_locale_refresh_translations()
After:\Drupal::service(Drupal\locale\LocaleJs)->refreshTranslations() -
Before:
_locale_invalidate_js()
After:\Drupal::service(Drupal\locale\LocaleJs)->invalidate()
The following functions have a replacement, but they are only public for testing purposes. They are marked as internal and can be changed or removed at any time in the future:
-
Before:
_locale_parse_js_file()
After:\Drupal::service(Drupal\locale\LocaleJs)->parseJsFile() -
Before:
_locale_rebuild_js()
After:\Drupal::service(Drupal\locale\LocaleJs)->rebuild()
Impacts:
Module developers