public function PopupOnLoadSettingsForm::submitForm in Popup On Load 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/ PopupOnLoadSettingsForm.php, line 37
Class
- PopupOnLoadSettingsForm
- Class PopupOnLoadSettingsForm.
Namespace
Drupal\popup_onload\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('popup_onload.settings')
->set(POPUP_ONLOAD_VAR_SORT_METHOD, $form_state
->getValue(POPUP_ONLOAD_VAR_SORT_METHOD))
->set(POPUP_ONLOAD_VAR_COOKIE_NAME, $form_state
->getValue(POPUP_ONLOAD_VAR_COOKIE_NAME))
->set(POPUP_ONLOAD_VAR_COOKIE_LIFETIME, $form_state
->getValue(POPUP_ONLOAD_VAR_COOKIE_LIFETIME))
->set(POPUP_ONLOAD_VAR_DISPLAY_DELAY, $form_state
->getValue(POPUP_ONLOAD_VAR_DISPLAY_DELAY))
->set(POPUP_ONLOAD_VAR_INCLUDE_PATHS, $form_state
->getValue(POPUP_ONLOAD_VAR_INCLUDE_PATHS))
->save();
}