function locale_translation_batch_fetch_finished

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

Implements callback_batch_finished().

Set result message.

Parameters

bool $success: TRUE if batch successfully completed.

array $results: Batch results.

Deprecated

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

See also

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

File

core/modules/locale/locale.batch.inc, line 167

Code

function locale_translation_batch_fetch_finished($success, $results) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleFetch::class)->batchFinished() instead. See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
  \Drupal::moduleHandler()->loadInclude('locale', 'inc', 'locale.bulk');
  \Drupal::service(LocaleFetch::class)->batchFinished($success, $results);
}

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