public function GroupMediaSettingsForm::submitForm in Group Media 8.2
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/ GroupMediaSettingsForm.php, line 101
Class
- GroupMediaSettingsForm
- Class GroupMediaSettingsForm.
Namespace
Drupal\groupmedia\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('groupmedia.settings')
->set('tracking_enabled', $form_state
->getValue('tracking_enabled'))
->set('bundles', $form_state
->getValue('bundles'))
->save();
parent::submitForm($form, $form_state);
}