You are here

public function DblogClearLogForm::submitForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dblog/src/Form/DblogClearLogForm.php \Drupal\dblog\Form\DblogClearLogForm::submitForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

core/modules/dblog/src/Form/DblogClearLogForm.php, line 72
Contains \Drupal\dblog\Form\DblogClearLogForm.

Class

DblogClearLogForm
Provides the form that clears out the log.

Namespace

Drupal\dblog\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('dblog.confirm');
}