You are here

function locale_translation_flush_projects in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 21
The API for comparing project translation status with available translation.

Code

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