You are here

public function GeysirModalParagraphDeleteForm::ajaxCancel in Geysir 8

File

src/Form/GeysirModalParagraphDeleteForm.php, line 68

Class

GeysirModalParagraphDeleteForm
Functionality to delete a paragraph through a modal.

Namespace

Drupal\geysir\Form

Code

public function ajaxCancel(array $form, FormStateInterface $form_state) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new CloseModalDialogCommand());
  return $response;
}