You are here

public function VINormalForm::buildForm in Visually Impaired Support (module) 8

Form constructor.

Parameters

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

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

Return value

array The form structure.

Overrides FormInterface::buildForm

File

src/Form/VINormalForm.php, line 23

Class

VINormalForm
Defines a form that configures forms module settings.

Namespace

Drupal\visually_impaired_module\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['visually-impaired-normal-block'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Normal site version'),
  ];
  return $form;
}