Same name in other branches
- 8.x-1.x src/Form/FitvidsAdminSettingsForm.php \Drupal\fitvids\Form\FitvidsAdminSettingsForm::submitForm()
Fichier
-
src/
Form/ FitvidsAdminSettingsForm.php, line 78
Classe
- FitvidsAdminSettingsForm
- Configure Fitvids settings for this site.
Namespace
Drupal\fitvids\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this->config('fitvids.settings');
$config->set('selectors', $form_state->getValue('fitvids_selectors'))
->set('custom_vendors', $form_state->getValue('fitvids_custom_vendors'))
->set('ignore_selectors', $form_state->getValue('fitvids_ignore_selectors'))
->save();
parent::submitForm($form, $form_state);
}