You are here

public function EditRepeatingRuleConfirmationModalForm::ajaxSubmit in Booking and Availability Management Tools for Drupal 8

File

modules/bat_event_series/src/Form/EditRepeatingRuleConfirmationModalForm.php, line 226
Contains \Drupal\bat_event_series\Form\EditRepeatingRuleConfirmationModalForm.

Class

EditRepeatingRuleConfirmationModalForm

Namespace

Drupal\bat_event_series\Form

Code

public function ajaxSubmit(array &$form, FormStateInterface $form_state) {
  $response = new AjaxResponse();
  $url = Url::fromRoute('entity.bat_event_series.edit_form', [
    'bat_event_series' => $this->event_series
      ->id(),
  ]);
  $response
    ->addCommand(new RedirectCommand($url
    ->toString()));
  return $response;
}