public function LingotekSettingsTabUtilitiesForm::disassociateAllTranslations in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 4.0.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.0.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.1.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.2.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.3.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.4.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.5.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.6.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.7.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
- 3.8.x src/Form/LingotekSettingsTabUtilitiesForm.php \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm::disassociateAllTranslations()
Disassociate all content and config translations.
File
- src/
Form/ LingotekSettingsTabUtilitiesForm.php, line 165 - Contains \Drupal\lingotek\Form\LingotekSettingsTabUtilitiesForm.
Class
- LingotekSettingsTabUtilitiesForm
- Tab for running Lingotek utilities in the settings page.
Namespace
Drupal\lingotek\FormCode
public function disassociateAllTranslations() {
$error = FALSE;
$error &= $this
->disassociateAllContentTranslations();
$error &= $this
->disassociateAllConfigTranslations();
if ($error) {
drupal_set_message($this
->t('Some translations may have been disassociated, but some failed.'), 'warning');
}
else {
drupal_set_message($this
->t('All translations have been disassociated.'));
}
}