public function SettingsForm::submitForm in Content locking (anti-concurrent editing) 8
Same name and namespace in other branches
- 8.2 modules/content_lock_timeout/src/Form/SettingsForm.php \Drupal\content_lock_timeout\Form\SettingsForm::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/
content_lock_timeout/ src/ Form/ SettingsForm.php, line 67
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\content_lock_timeout\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('content_lock_timeout.settings')
->set('content_lock_timeout_minutes', $form_state
->getValue('content_lock_timeout_minutes'))
->set('content_lock_timeout_on_edit', $form_state
->getValue('content_lock_timeout_on_edit'))
->save();
}