public function SettingsForm::submitForm in Bootstrap Basic Image Gallery 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 79
Class
- SettingsForm
- Defines a form that configures Questions and Answers settings.
Namespace
Drupal\bootstrap_basic_image_gallery\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
// Save the updated settings.
$this
->config('bootstrap_basic_image_gallery.settings')
->set('prevent_load_bootstrap', $values['prevent_load_bootstrap'])
->save();
parent::submitForm($form, $form_state);
}