You are here

public function SamlauthMappingListForm::submitForm in SAML Authentication 8.3

Same name and namespace in other branches
  1. 4.x modules/samlauth_user_fields/src/Form/SamlauthMappingListForm.php \Drupal\samlauth_user_fields\Form\SamlauthMappingListForm::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

modules/samlauth_user_fields/src/Form/SamlauthMappingListForm.php, line 125

Class

SamlauthMappingListForm
Displays the list of attribute-field mappings; edits related configuration.

Namespace

Drupal\samlauth_user_fields\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->configFactory()
    ->getEditable(UserFieldsEventSubscriber::CONFIG_OBJECT_NAME)
    ->set('link_first_user', $form_state
    ->getValue('link_first_user'))
    ->set('ignore_blocked', $form_state
    ->getValue('ignore_blocked'))
    ->save();
  parent::submitForm($form, $form_state);
}