function locale_translation_get_status
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \locale_translation_get_status()
- 11.x core/modules/locale/locale.module \locale_translation_get_status()
- 9 core/modules/locale/locale.module \locale_translation_get_status()
- 8.9.x core/modules/locale/locale.module \locale_translation_get_status()
Gets the current translation status.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleSource::class)->loadSources() instead.
See also
https://www.drupal.org/node/3591660
File
-
core/
modules/ locale/ locale.module, line 519
Code
function locale_translation_get_status($projects = NULL, $langcodes = NULL) : array {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleSource::class)->loadSources(). See https://www.drupal.org/node/3591660', E_USER_DEPRECATED);
\Drupal::moduleHandler()->loadInclude('locale', 'inc', 'locale.translation');
return \Drupal::service(LocaleSource::class)->loadSources($projects, $langcodes);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.