function AjaxTestDialogForm::modal

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php \Drupal\ajax_test\Form\AjaxTestDialogForm::modal()
  2. 10 core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php \Drupal\ajax_test\Form\AjaxTestDialogForm::modal()
  3. 11.x 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 67

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.