public function SettingsForm::submitForm in Moderation Dashboard 8
Same name and namespace in other branches
- 2.0.x src/Form/SettingsForm.php \Drupal\moderation_dashboard\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
- src/
Form/ SettingsForm.php, line 45
Class
- SettingsForm
- The settings form for Moderation Dashboard.
Namespace
Drupal\moderation_dashboard\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('moderation_dashboard.settings')
->set('redirect_on_login', $values['redirect_on_login'])
->save();
parent::submitForm($form, $form_state);
}