public function ConfigForm::submitForm in Nice messages 8.2
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/ ConfigForm.php, line 78 - Contains Drupal\nicemessages\Form\ConfigForm.
Class
- ConfigForm
- Class ConfigForm.
Namespace
Drupal\nicemessages\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('nicemessages.config')
->set('activation_method', $form_state
->getValue('activation_method'))
->set('position', $form_state
->getValue('position'))
->save();
}