function locale_translation_batch_status_check
Same name and namespace in other branches
- 10 core/modules/locale/locale.batch.inc \locale_translation_batch_status_check()
- 11.x core/modules/locale/locale.batch.inc \locale_translation_batch_status_check()
- 9 core/modules/locale/locale.batch.inc \locale_translation_batch_status_check()
- 8.9.x core/modules/locale/locale.batch.inc \locale_translation_batch_status_check()
Implements callback_batch_operation().
Checks the presence and creation time po translation files in located at remote server location and local file system.
Parameters
string $project: Machine name of the project for which to check the translation status.
string $langcode: Language code of the language for which to check the translation.
array $options: An array with options that can have the following elements:
- 'finish_feedback': Whether or not to give feedback to the user when the batch is finished. Optional, defaults to TRUE.
- 'use_remote': Whether or not to check the remote translation file. Optional, defaults to TRUE.
array|\ArrayAccess $context: The batch context.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->batchStatusCheck() instead.
See also
https://www.drupal.org/node/3589759
File
-
core/
modules/ locale/ locale.batch.inc, line 69
Code
function locale_translation_batch_status_check($project, $langcode, array $options, &$context) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleFetch::class)->batchStatusCheck() instead. See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
\Drupal::service(LocaleFetch::class)->batchStatusCheck($project, $langcode, $options, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.