Menu callback: Close the ajax dialog.
function ajax_test_dialog_close() { $response = new AjaxResponse(); $response ->addCommand(new CloseDialogCommand('#ajax-test-dialog-wrapper-1')); return $response; }