function locale_config_batch_update_default_config_langcodes
Same name and namespace in other branches
- 11.x core/modules/locale/locale.bulk.inc \locale_config_batch_update_default_config_langcodes()
Implements callback_batch_operation().
Updates default configuration when new modules or themes are installed.
Parameters
array|\ArrayAccess $context: The batch context.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleConfigBatch::class)->batchUpdateDefaultConfigLangcodes() instead.
See also
https://www.drupal.org/node/3589759
File
-
core/
modules/ locale/ locale.bulk.inc, line 349
Code
function locale_config_batch_update_default_config_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)->batchUpdateDefaultConfigLangcodes(). See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
\Drupal::service(LocaleConfigBatch::class)->batchUpdateDefaultConfigLangcodes($context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.