public function EventSeriesForm::editRepeatingRuleFormSubmitAjax in Booking and Availability Management Tools for Drupal 8
Open modal to edit repeating rule.
File
- modules/
bat_event_series/ src/ Entity/ Form/ EventSeriesForm.php, line 224 - Contains \Drupal\bat_event_series\Entity\Form\EventSeriesForm.
Class
- EventSeriesForm
- Form controller for Event edit forms.
Namespace
Drupal\bat_event_series\Entity\FormCode
public function editRepeatingRuleFormSubmitAjax(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$modal_form = $this->formBuilder
->getForm('Drupal\\bat_event_series\\Form\\EditRepeatingRuleModalForm', $this->entity);
$modal_form['#attached']['library'][] = 'core/drupal.dialog.ajax';
$response
->addCommand(new OpenModalDialogCommand($this
->t('Edit repeating rule'), $modal_form, [
'width' => 600,
]));
return $response;
}