You are here

public function PasswordEyeSettingsForm::submitForm in Password Eye 8

Same name and namespace in other branches
  1. 2.0.x src/Form/PasswordEyeSettingsForm.php \Drupal\password_eye\Form\PasswordEyeSettingsForm::submitForm()

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 ConfigFormBase::submitForm

File

src/Form/PasswordEyeSettingsForm.php, line 45

Class

PasswordEyeSettingsForm

Namespace

Drupal\password_eye\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('password_eye.settings');
  $config
    ->set('password_eye.form_id_password', $form_state
    ->getValue('form_id_password'));
  $config
    ->save();
  return parent::submitForm($form, $form_state);
}