function locale_translation_file_history_delete
Same name and namespace in other branches
- 10 core/modules/locale/locale.module \locale_translation_file_history_delete()
- 11.x core/modules/locale/locale.module \locale_translation_file_history_delete()
- 9 core/modules/locale/locale.module \locale_translation_file_history_delete()
- 8.9.x core/modules/locale/locale.module \locale_translation_file_history_delete()
Deletes the history of downloaded translations.
Parameters
array $projects: Project name(s) to be deleted from the file history. If both project(s) and language code(s) are specified the conditions will be ANDed.
array $langcodes: Language code(s) to be deleted from the file history.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(CurrentImportStorage::class)->delete() instead.
See also
https://www.drupal.org/node/3037162
File
-
core/
modules/ locale/ locale.module, line 506
Code
function locale_translation_file_history_delete($projects = [], $langcodes = []) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(CurrentImportStorage::class)->delete(). See https://www.drupal.org/node/3037162', E_USER_DEPRECATED);
\Drupal::service(CurrentImportStorage::class)->delete($projects, $langcodes);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.