function locale_config_batch_update_config_translations
Implements callback_batch_operation().
Performs configuration translation refresh.
Parameters
array $names: An array of names of configuration objects to update.
array $langcodes: (optional) Array of language codes to update. Defaults to all languages.
array|\ArrayAccess $context: Contains a list of files imported.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleConfigBatch::class)->batchUpdateConfigTranslations() instead.
See also
\Drupal\locale\LocaleConfigBatch::buildBatch()
https://www.drupal.org/node/3589759
1 call to locale_config_batch_update_config_translations()
- locale_config_batch_refresh_name in core/
modules/ locale/ locale.bulk.inc - Implements callback_batch_operation().
File
-
core/
modules/ locale/ locale.bulk.inc, line 394
Code
function locale_config_batch_update_config_translations(array $names, array $langcodes, &$context) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleConfigBatch::class)->batchUpdateConfigTranslations(). See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
\Drupal::service(LocaleConfigBatch::class)->batchUpdateConfigTranslations($names, $langcodes, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.