public function GoogleQRCodeAdminForm::submitForm in Google QR Code Generator 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/ GoogleQRCodeAdminForm.php, line 108
Class
Namespace
Drupal\google_qr_code\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('google_qr_code.settings')
->set('whenshow', $form_state
->getValue('google_qr_code_when_show'))
->set('height', $form_state
->getValue('google_qr_code_height'))
->set('width', $form_state
->getValue('google_qr_code_width'))
->save();
parent::submitForm($form, $form_state);
}