function locale_translation_clear_status
Same name in other branches
- 9 core/modules/locale/locale.module \locale_translation_clear_status()
- 8.9.x core/modules/locale/locale.module \locale_translation_clear_status()
- 10 core/modules/locale/locale.module \locale_translation_clear_status()
Clear the translation status cache.
3 calls to locale_translation_clear_status()
- LocaleSettingsForm::submitForm in core/
modules/ locale/ src/ Form/ LocaleSettingsForm.php - Form submission handler.
- locale_system_file_system_settings_submit in core/
modules/ locale/ locale.module - Submit handler for the file system settings form.
- TranslationStatusForm::submitForm in core/
modules/ locale/ src/ Form/ TranslationStatusForm.php - Form submission handler.
File
-
core/
modules/ locale/ locale.module, line 959
Code
function locale_translation_clear_status() {
\Drupal::keyValue('locale.translation_status')->deleteAll();
\Drupal::state()->delete('locale.translation_last_checked');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.