public function LayoutBuilderModalSettingsForm::submitForm in Layout Builder Modal 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/ LayoutBuilderModalSettingsForm.php, line 96
Class
- LayoutBuilderModalSettingsForm
- Provides the layout builder modal configuration form.
Namespace
Drupal\layout_builder_modal\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('layout_builder_modal.settings')
->set('modal_width', $form_state
->getValue('modal_width'))
->set('modal_height', $form_state
->getValue('modal_height'))
->set('modal_autoresize', $form_state
->getValue('modal_autoresize'))
->set('theme_display', $form_state
->getValue('theme_display'))
->save();
parent::submitForm($form, $form_state);
}