You are here

public function VISpecialForm::submitForm in Visually Impaired Support (module) 8

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

src/Form/VISpecialForm.php, line 38

Class

VISpecialForm
Defines a form that configures forms module settings.

Namespace

Drupal\visually_impaired_module\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  setcookie('visually_impaired', 'on', 0, '/');
}