public function BootstrapLibrarySettingsForm::submitForm in Bootstrap Library 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/
BootstrapLibrarySettingsForm.php, line 149 - Contains \Drupal\bootstrap_library\BootstrapLibrarySettingsForm
Class
- BootstrapLibrarySettingsForm
- Configure bootstrap_library settings for this site.
Namespace
Drupal\bootstrap_libraryCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('bootstrap_library.settings')
->set('theme.visibility', $form_state
->getValue('theme_visibility'))
->set('theme.themes', $form_state
->getValue('theme_themes'))
->set('url.visibility', $form_state
->getValue('url_visibility'))
->set('url.pages', _bootstrap_library_string_to_array($form_state
->getValue('url_pages')))
->set('minimized.options', $form_state
->getValue('minimized_options'))
->set('cdn.bootstrap', $form_state
->getValue('bootstrap'))
->set('cdn.options', $form_state
->getValue('cdn_options'))
->set('files.types', $form_state
->getValue('types'))
->save();
parent::submitForm($form, $form_state);
}