You are here

public function PopupAdminForm::submitForm in Popup 8

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/PopupAdminForm.php, line 129
Contains \Drupal\popup\src\Form\PopupAdminForm.

Class

PopupAdminForm
Class PopupAdminForm.

Namespace

Drupal\popup\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('search_by_page.settings')
    ->set('search_by_page_number_of_items', $form_state
    ->getValue('search_by_page_number_of_items'))
    ->set('search_by_page_env', $form_state
    ->getValue('search_by_page_env'))
    ->set('search_by_page_tab', $form_state
    ->getValue('search_by_page_tab'))
    ->save();
  parent::submitForm($form, $form_state);
}