function locale_translation_clear_cache_projects in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
Clears the projects cache.
3 calls to locale_translation_clear_cache_projects()
- LocaleTranslationProjectsTest::testLocaleTranslationClearCacheProjects in core/
modules/ locale/ tests/ src/ Kernel/ LocaleTranslationProjectsTest.php - Tests locale_translation_clear_cache_projects().
- locale_translation_build_projects in core/
modules/ locale/ locale.compare.inc - Builds list of projects and stores the result in the database.
- _install_prepare_import in core/
includes/ install.core.inc - Tells the translation import process that Drupal core is installed.
File
- core/
modules/ locale/ locale.translation.inc, line 87 - Common API for interface translation.
Code
function locale_translation_clear_cache_projects() {
drupal_static_reset('locale_translation_get_projects');
}