public function SettingsForm::submitForm in Form Placeholder 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/ SettingsForm.php, line 21
Class
Namespace
Drupal\form_placeholder\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('form_placeholder.settings')
->set('included_selectors', $form_state
->getValue('included_selectors'))
->set('excluded_selectors', $form_state
->getValue('excluded_selectors'))
->set('required_indicator', $form_state
->getValue('required_indicator'))
->save();
parent::submitForm($form, $form_state);
}