public function FacetsAvailabilityForm::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_facets/ src/ Form/ FacetsAvailabilityForm.php, line 126 - Contains \Drupal\bat_facets\Form\FacetsAvailabilityForm.
Class
Namespace
Drupal\bat_facets\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$form_state
->setRedirectUrl(Url::fromUserInput('?bat_start_date=' . $values['arrival'] . '&bat_end_date=' . $values['departure']));
}