/**
* {@inheritdoc}
*/
public function submitForm(array &
$form, FormStateInterface
$form_state) { $form_state->
setRedirect('ajax_test.dialog_contents'
);
} /**
* AJAX callback handler for AjaxTestDialogForm.
*/
public function modal(&
$form, FormStateInterface
$form_state) { return $this->
dialog(TRUE
);
} /**
* AJAX callback handler for AjaxTestDialogForm.
*/
public function nonModal(&
$form, FormStateInterface
$form_state) { return $this->
dialog(FALSE
);
} /**
* Util to render dialog in ajax callback.
*
* @param bool $is_modal
* (optional) TRUE if modal, FALSE if plain dialog. Defaults to FALSE.
*
* @return \Drupal\Core\Ajax\AjaxResponse
* An ajax response object.
*/