function locale_config_batch_refresh_name

Same name in other branches
  1. 9 core/modules/locale/locale.bulk.inc \locale_config_batch_refresh_name()
  2. 8.9.x core/modules/locale/locale.bulk.inc \locale_config_batch_refresh_name()
  3. 10 core/modules/locale/locale.bulk.inc \locale_config_batch_refresh_name()

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.1.0 and is removed from drupal:12.0.0. Use locale_config_batch_update_config_translations($names, $langcodes, $context) instead.

See also

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

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

File

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

Code

function locale_config_batch_refresh_name(array $names, array $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_config_translations() instead. See https://www.drupal.org/node/3475054', E_USER_DEPRECATED);
    locale_config_batch_update_config_translations($names, $langcodes, $context);
}

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