function locale_config_batch_finished

Same name and namespace in other branches
  1. 10 core/modules/locale/locale.bulk.inc \locale_config_batch_finished()
  2. 11.x core/modules/locale/locale.bulk.inc \locale_config_batch_finished()
  3. 9 core/modules/locale/locale.bulk.inc \locale_config_batch_finished()
  4. 8.9.x core/modules/locale/locale.bulk.inc \locale_config_batch_finished()

Implements callback_batch_finished().

Finishes callback of system page locale import batch.

Parameters

bool $success: Information about the success of the batch import.

array $results: Information about the results of the batch import.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleConfigBatch::class)->batchFinished() instead.

See also

\Drupal\locale\LocaleConfigBatch::buildBatch()

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

File

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

Code

function locale_config_batch_finished($success, array $results) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleConfigBatch::class)->batchFinished(). See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
  \Drupal::service(LocaleConfigBatch::class)->batchFinished($success, $results);
}

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