function locale_translation_clear_cache_projects

Same name in other branches
  1. 8.9.x core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
  2. 10 core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
  3. 11.x 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

Code

function locale_translation_clear_cache_projects() {
    drupal_static_reset('locale_translation_get_projects');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.