function locale_translation_clear_cache_projects

Same name and namespace in other branches
  1. 10 core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
  2. 11.x core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
  3. 9 core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()
  4. 8.9.x core/modules/locale/locale.translation.inc \locale_translation_clear_cache_projects()

Clears the projects cache.

Deprecated

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service('locale.project')->resetCache() instead.

See also

https://www.drupal.org/node/3569330

File

core/modules/locale/locale.translation.inc, line 91

Code

function locale_translation_clear_cache_projects() : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(\'locale.project\')->resetCache() instead. See https://www.drupal.org/node/3569330', E_USER_DEPRECATED);
  \Drupal::service('locale.project')->resetCache();
}

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