public function SettingsForm::submitForm in External Link Pop-up 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 115
Class
- SettingsForm
- Implements the external_link_popup.settings route.
Namespace
Drupal\external_link_popup\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config()
->set('whitelist', $form_state
->getValue('whitelist'))
->set('show_admin', $form_state
->getValue('show_admin'))
->set('width', $form_state
->getValue('width'))
->save();
parent::submitForm($form, $form_state);
}