You are here

public function EditRepeatingRuleModalForm::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 FormInterface::submitForm

File

modules/bat_event_series/src/Form/EditRepeatingRuleModalForm.php, line 212
Contains \Drupal\bat_event_series\Form\EditRepeatingRuleModalForm.

Class

EditRepeatingRuleModalForm

Namespace

Drupal\bat_event_series\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = [
    'start_date' => $form_state
      ->getValue('start_date'),
    'end_date' => $form_state
      ->getValue('end_date'),
    'repeat_frequency' => $form_state
      ->getValue('repeat_frequency'),
    'repeat_until' => $form_state
      ->getValue('repeat_until'),
  ];
  $this->tempStore
    ->set($this
    ->currentUser()
    ->id(), $values);
}