You are here

public function DevelDebugLogDeleteForm::submitForm in Devel Debug Log 8

@inheritdoc

Overrides FormInterface::submitForm

File

src/Form/DevelDebugLogDeleteForm.php, line 67

Class

DevelDebugLogDeleteForm

Namespace

Drupal\devel_debug_log\Form

Code

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.'));
}