public function VINormalForm::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/ VINormalForm.php, line 35
Class
- VINormalForm
- Defines a form that configures forms module settings.
Namespace
Drupal\visually_impaired_module\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
setcookie('visually_impaired', 'off', 0, '/');
}