function locale_translation_clear_status in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 1006 - Enables the translation of the user interface to languages other than English.
Code
function locale_translation_clear_status() {
\Drupal::state()
->delete('locale.translation_status');
\Drupal::state()
->delete('locale.translation_last_checked');
}