You are here

public function PerimeterSettingsForm::submitForm in Drupal Perimeter Defence 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/PerimeterSettingsForm.php \Drupal\perimeter\Form\PerimeterSettingsForm::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/PerimeterSettingsForm.php, line 59
Contains Drupal\perimeter\Form\PerimeterSettingsForm.

Class

PerimeterSettingsForm
Class PerimeterSettingsForm.

Namespace

Drupal\perimeter\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->config('perimeter.settings')
    ->set('not_found_exception_patterns', explode("\n", $form_state
    ->getValue('not_found_exception_patterns')))
    ->save();
}