You are here

public function AjaxTestDialogForm::modal in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php \Drupal\ajax_test\Form\AjaxTestDialogForm::modal()

AJAX callback handler for AjaxTestDialogForm.

File

core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php, line 77
Contains \Drupal\ajax_test\Form\AjaxTestDialogForm.

Class

AjaxTestDialogForm
Dummy form for testing DialogRenderer with _form routes.

Namespace

Drupal\ajax_test\Form

Code

public function modal(&$form, FormStateInterface $form_state) {
  return $this
    ->dialog(TRUE);
}