function _locale_translation_batch_status_operations
Same name and namespace in other branches
- 10 core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
- 11.x core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
- 9 core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
- 8.9.x core/modules/locale/locale.compare.inc \_locale_translation_batch_status_operations()
Constructs batch operations for checking remote translation status.
Parameters
array $projects: Array of project names to be processed.
array $langcodes: Array of language codes.
array $options: Batch processing options.
Return value
array Array of batch operations.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class)->getStatusOperations() instead.
See also
https://www.drupal.org/node/3589759
File
-
core/
modules/ locale/ locale.compare.inc, line 268
Code
function _locale_translation_batch_status_operations($projects, $langcodes, $options = []) : array {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleFetch::class)->getStatusOperations(). See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
return \Drupal::service(LocaleFetch::class)->getStatusOperations($projects, $langcodes, $options);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.