public function LogouttabSettingsForm::submitForm in Logout Tab 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
- src/
Form/ LogouttabSettingsForm.php, line 54
Class
- LogouttabSettingsForm
- Configure logouttab settings for this site.
Namespace
Drupal\logouttab\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('logouttab.settings')
->set('url', $form_state
->getValue('url'))
->set('weight', $form_state
->getValue('weight'))
->save();
}