function locale_translation_flush_projects

Same name in other branches
  1. 9 core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
  2. 10 core/modules/locale/locale.compare.inc \locale_translation_flush_projects()
  3. 11.x core/modules/locale/locale.compare.inc \locale_translation_flush_projects()

Clear the project data table.

2 calls to locale_translation_flush_projects()
LocaleController::checkTranslation in core/modules/locale/src/Controller/LocaleController.php
Checks for translation updates and displays the translations status.
locale_translation_manual_status in core/modules/locale/locale.pages.inc
Page callback: Checks for translation updates and displays the status.

File

core/modules/locale/locale.compare.inc, line 20

Code

function locale_translation_flush_projects() {
    \Drupal::service('locale.project')->deleteAll();
}

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