You are here

public function FullcalendarForm::submitForm in Booking and Availability Management Tools for Drupal 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

modules/bat_fullcalendar/src/Form/FullcalendarForm.php, line 81

Class

FullcalendarForm

Namespace

Drupal\bat_fullcalendar\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('bat_fullcalendar.settings')
    ->set('bat_fullcalendar_scheduler_key', $form_state
    ->getValue('bat_fullcalendar_scheduler_key'))
    ->set('bat_fullcalendar_scheduler_commercial_key', $form_state
    ->getValue('bat_fullcalendar_scheduler_commercial_key'))
    ->save();
  parent::submitForm($form, $form_state);
}