public function VudAdminAdvancedSettings::submitForm in Vote Up/Down 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/ VudAdminAdvancedSettings.php, line 23
Class
- VudAdminAdvancedSettings
- Configures Vote Up/Down settings for this site.
Namespace
Drupal\vud\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$vud_settings = $this
->config('vud.settings');
$vud_settings
->set('tag', $form_state
->getValue('vud_tag'));
$vud_settings
->set('message_on_deny', $form_state
->getValue('vud_message_on_deny'));
$vud_settings
->save();
parent::submitForm($form, $form_state);
}