public function MaestroTemplateBuilderSettingsForm::submitForm in Maestro 8.2
Same name and namespace in other branches
- 3.x modules/maestro_template_builder/src/Form/MaestroTemplateBuilderSettingsForm.php \Drupal\maestro_template_builder\Form\MaestroTemplateBuilderSettingsForm::submitForm()
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
- modules/
maestro_template_builder/ src/ Form/ MaestroTemplateBuilderSettingsForm.php, line 59
Class
- MaestroTemplateBuilderSettingsForm
- Configure settings for this site.
Namespace
Drupal\maestro_template_builder\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('maestro_template_builder.settings')
->set('maestro_template_builder_local_library', $form_state
->getValue('maestro_template_builder_local_library'))
->save();
$this
->config('maestro_template_builder.settings')
->set('maestro_template_builder_remote_library_location', $form_state
->getValue('maestro_template_builder_remote_library_location'))
->save();
parent::submitForm($form, $form_state);
}