public function DevelMailLoggerDeleteForm::submitForm in Devel Mail Logger 8
@inheritdoc
Overrides FormInterface::submitForm
File
- src/
Form/ DevelMailLoggerDeleteForm.php, line 64
Class
- DevelMailLoggerDeleteForm
- From to delete logged mail and send test mails.
Namespace
Drupal\devel_mail_logger\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
Database::getConnection()
->delete('devel_mail_logger')
->execute();
$this
->messenger()
->addStatus(t('All Mails have been deleted.'));
}