You are here

public function VISpecialForm::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/VISpecialForm.php, line 23

Class

VISpecialForm
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-block'] = [
    '#type' => 'submit',
    '#attributes' => [
      'itemprop' => 'copy',
    ],
    '#value' => $this
      ->t('Visually impaired site version'),
  ];
  return $form;
}