public function LingotekSettingsTabProfilesEditForm::deleteButton in Lingotek Translation 8
Same name and namespace in other branches
- 8.2 src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 4.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.0.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.1.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.2.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.3.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.4.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.5.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.6.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.7.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
- 3.8.x src/Form/LingotekSettingsTabProfilesEditForm.php \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm::deleteButton()
File
- src/
Form/ LingotekSettingsTabProfilesEditForm.php, line 149 - Contains \Drupal\lingotek\Form\LingotekSettingsTabProfilesEditForm.
Class
- LingotekSettingsTabProfilesEditForm
- Configure Lingotek
Namespace
Drupal\lingotek\FormCode
public function deleteButton(array &$form, FormStateInterface $form_state) {
if ($this->profile_usage == 0 and $this->is_custom_id) {
$this
->deleteCustomProfile();
}
drupal_set_message($this
->t('The profile has been deleted.'));
$form_state
->setRedirect('lingotek.settings');
}