function locale_translate_batch_import_save
Same name and namespace in other branches
- 10 core/modules/locale/locale.bulk.inc \locale_translate_batch_import_save()
- 11.x core/modules/locale/locale.bulk.inc \locale_translate_batch_import_save()
- 9 core/modules/locale/locale.bulk.inc \locale_translate_batch_import_save()
- 8.9.x core/modules/locale/locale.bulk.inc \locale_translate_batch_import_save()
Implements callback_batch_operation().
Save data of imported files.
Parameters
array|\ArrayAccess $context: Contains a list of imported files.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleImportBatch::class)->batchSave() instead.
See also
https://www.drupal.org/node/3589759
File
-
core/
modules/ locale/ locale.bulk.inc, line 126
Code
function locale_translate_batch_import_save($context) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleImportBatch::class)->batchSave(). See https://www.drupal.org/node/3589759', E_USER_DEPRECATED);
\Drupal::service(LocaleImportBatch::class)->batchSave($context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.