public function LiveChatLicenseForm::submitForm in LiveChat 8.2
Same name and namespace in other branches
- 8 src/Form/LiveChatLicenseForm.php \Drupal\livechat\Form\LiveChatLicenseForm::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
- src/
Form/ LiveChatLicenseForm.php, line 130
Class
- LiveChatLicenseForm
- Configure Coffee for this site.
Namespace
Drupal\livechat\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config(LIVECHAT_CONFIGURATION_NAME)
->set('livechat_login', $values['login'])
->set('livechat_license', $values['license_number'])
->save();
parent::submitForm($form, $form_state);
}