You are here

public function SettingsForm::submitForm in Views Send 8

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides ConfigFormBase::submitForm

File

src/SettingsForm.php, line 92

Class

SettingsForm
Configure update settings for this site.

Namespace

Drupal\views_send

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('views_send.settings');
  $config
    ->set('throttle', $form_state
    ->getValue('throttle'))
    ->set('retry', $form_state
    ->getValue('retry'))
    ->set('spool_expire', $form_state
    ->getValue('spool_expire'))
    ->set('debug', $form_state
    ->getValue('debug'))
    ->save();
  parent::submitForm($form, $form_state);
}