You are here

public function NoReqNewPassSettingsForm::buildForm in No Request New Password 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 ConfigFormBase::buildForm

File

src/Form/NoReqNewPassSettingsForm.php, line 32

Class

NoReqNewPassSettingsForm
Configure hello settings for this site.

Namespace

Drupal\noreqnewpass\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('noreqnewpass.settings_form');
  $form['noreqnewpass_disable'] = [
    '#type' => 'checkbox',
    '#title' => 'Disable Request new password link',
    '#default_value' => $config
      ->get('noreqnewpass_disable'),
    '#description' => 'If checked, Request new password link will be disabled.',
  ];
  return parent::buildForm($form, $form_state);
}