function locale_translation_flush_projects
Same name and namespace in other branches
- 10 core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
- 11.x core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
- 9 core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
- 8.9.x core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
Clear the project data table.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleProjectRepository::class)->deleteAll() instead.
See also
https://www.drupal.org/node/3037033
File
-
core/
modules/ locale/ locale.compare.inc, line 27
Code
function locale_translation_flush_projects() : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal::service(LocaleProjectRepository::class)->deleteAll() instead. See https://www.drupal.org/node/3037033', E_USER_DEPRECATED);
\Drupal::service(LocaleProjectRepository::class)->deleteAll();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.