public function ConfirmDeleteEditorNoteForm::closeModalForm in Editor Notes 8
Ajax callback for the "Cancel" button.
Close modal dialog.
Parameters
array $form: The Form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Return value
\Drupal\Core\Ajax\AjaxResponse Ajax response.
File
- src/
Form/ ConfirmDeleteEditorNoteForm.php, line 142
Class
- ConfirmDeleteEditorNoteForm
- Class ConfirmDeleteEditorNoteForm.
Namespace
Drupal\editor_note\FormCode
public function closeModalForm(array $form, FormStateInterface $form_state) {
$response = new AjaxResponse();
$command = new CloseModalDialogCommand();
$response
->addCommand($command);
return $response;
}