public function ConfigFormBase::submitForm in Zoom API 2.0.x
Same name and namespace in other branches
- 8 src/Form/ConfigFormBase.php \Drupal\zoomapi\Form\ConfigFormBase::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/ ConfigFormBase.php, line 32
Class
- ConfigFormBase
- Config form base for our config form.
Namespace
Drupal\zoomapi\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->getConfig();
$values = $form_state
->getValues();
$config
->set('base_uri', $values['base_uri']);
$config
->set('api_key', $values['api_key']);
$config
->set('api_secret', $values['api_secret']);
$config
->set('webhook_verification_token', $values['webhook_verification_token']);
$config
->save();
}