function locale_config_batch_set_config_langcodes

Same name in other branches
  1. 9 core/modules/locale/locale.bulk.inc \locale_config_batch_set_config_langcodes()
  2. 10 core/modules/locale/locale.bulk.inc \locale_config_batch_set_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.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes(&$context) instead.

See also

https://www.drupal.org/node/3475054

1 call to locale_config_batch_set_config_langcodes()
LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchSetConfigLangcodes in core/modules/locale/tests/src/Unit/LocaleBulkDeprecationTest.php
Tests the deprecation of locale_config_batch_set_config_langcodes().

File

core/modules/locale/locale.bulk.inc, line 634

Code

function locale_config_batch_set_config_langcodes(&$context) : void {
    @trigger_error(__METHOD__ . '() is deprecated in drupal:11.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_default_config_langcodes() instead. See https://www.drupal.org/node/3475054', E_USER_DEPRECATED);
    locale_config_batch_update_default_config_langcodes($context);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.