You are here

public function ActivitySendSettingsForm::submitForm in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  2. 8.2 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  3. 8.3 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  4. 8.4 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  5. 8.5 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  6. 8.6 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  7. 8.7 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  8. 8.8 modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  9. 10.3.x modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  10. 10.0.x modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  11. 10.1.x modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::submitForm()
  12. 10.2.x modules/custom/activity_send/src/Form/ActivitySendSettingsForm.php \Drupal\activity_send\Form\ActivitySendSettingsForm::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/custom/activity_send/src/Form/ActivitySendSettingsForm.php, line 53

Class

ActivitySendSettingsForm
Configure activity send settings.

Namespace

Drupal\activity_send\Form

Code

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