public function SmartmenusSettingsForm::submitForm in Smartmenus.js 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/ SmartmenusSettingsForm.php, line 91
Class
- SmartmenusSettingsForm
- Class SmartmenusSettingsForm.
Namespace
Drupal\smartmenus\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config($this->smartmenusUtil
->getConfigFormSettingsName())
->set('smartmenus_theme', $form_state
->getValue('smartmenus_theme'))
->save();
}