public function ResponsiveWrappersSettings::submitForm in Responsive wrappers 8
Same name and namespace in other branches
- 2.0.x src/Form/ResponsiveWrappersSettings.php \Drupal\responsivewrappers\Form\ResponsiveWrappersSettings::submitForm()
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/ ResponsiveWrappersSettings.php, line 60
Class
- ResponsiveWrappersSettings
- Configure Responsive wrappers settings.
Namespace
Drupal\responsivewrappers\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('responsivewrappers.settings');
$config
->set('add_css', $form_state
->getValue('responsivewrappers_add_css'))
->set('version', $form_state
->getValue('responsivewrappers_version'))
->save();
parent::submitForm($form, $form_state);
}