You are here

function locale_translation_clear_status in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/locale.module \locale_translation_clear_status()
  2. 9 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 979
Enables the translation of the user interface to languages other than English.

Code

function locale_translation_clear_status() {
  \Drupal::keyValue('locale.translation_status')
    ->deleteAll();
  \Drupal::state()
    ->delete('locale.translation_last_checked');
}