public function ConfigForm::submitForm in Node.js integration 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
- nodejs_notify/
src/ Form/ ConfigForm.php, line 48
Class
- ConfigForm
- Class ConfigForm
Namespace
Drupal\nodejs_notify\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('nodejs_notify.settings')
->set('notification_lifetime_seconds', $form_state
->getValue('notification_lifetime_seconds'))
->save();
parent::submitForm($form, $form_state);
}