public function DevelDebugLogDeleteForm::submitForm in Devel Debug Log 8
@inheritdoc
Overrides FormInterface::submitForm
File
- src/
Form/ DevelDebugLogDeleteForm.php, line 67
Class
Namespace
Drupal\devel_debug_log\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
Database::getConnection()
->delete('devel_debug_log')
->execute();
$this->messenger
->addMessage($this
->t('All debug messages have been cleared.'));
}