public function LBATConfigForm::submitForm in Layout builder admin theme 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/ LBATConfigForm.php, line 48
Class
- LBATConfigForm
- Class LBATConfigForm.
Namespace
Drupal\layout_builder_admin_theme\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('layout_builder_admin_theme.config')
->set('lbat_enable_admin_theme', $form_state
->getValue('lbat_enable_admin_theme'))
->save();
}