public function SettingsForm::submitForm in BigBlueButton 8
Same name in this branch
- 8 src/Form/SettingsForm.php \Drupal\bbb\Form\SettingsForm::submitForm()
- 8 modules/bbb_node/src/Form/SettingsForm.php \Drupal\bbb_node\Form\SettingsForm::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/
bbb_node/ src/ Form/ SettingsForm.php, line 77
Class
- SettingsForm
- Provides an administration settings form.
Namespace
Drupal\bbb_node\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Get config factory.
$config = $this->configFactory
->getEditable('bbb_node.settings');
$form_values = $form_state
->getValues();
$config
->set('display_mode', $form_values['bbb_client']['display_mode'])
->set('display_height', $form_values['bbb_client']['display_height'])
->set('display_width', $form_values['bbb_client']['display_width'])
->save();
parent::submitForm($form, $form_state);
}