You are here

public function SettingsForm::submitForm in FullCalendar 8

Same name in this branch
  1. 8 src/Form/SettingsForm.php \Drupal\fullcalendar\Form\SettingsForm::submitForm()
  2. 8 fullcalendar_options/src/Form/SettingsForm.php \Drupal\fullcalendar_options\Form\SettingsForm::submitForm()
Same name and namespace in other branches
  1. 8.5 src/Form/SettingsForm.php \Drupal\fullcalendar\Form\SettingsForm::submitForm()
  2. 8.2 src/Form/SettingsForm.php \Drupal\fullcalendar\Form\SettingsForm::submitForm()
  3. 8.3 src/Form/SettingsForm.php \Drupal\fullcalendar\Form\SettingsForm::submitForm()
  4. 8.4 src/Form/SettingsForm.php \Drupal\fullcalendar\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

src/Form/SettingsForm.php, line 56

Class

SettingsForm
@todo.

Namespace

Drupal\fullcalendar\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('fullcalendar.settings')
    ->set('path', rtrim($form_state
    ->getValue('path'), '/'))
    ->set('compression', $form_state
    ->getValue('compression'))
    ->save();
  parent::submitForm($form, $form_state);
}