function AjaxTestDialogForm::modalFromUrl

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

AJAX callback handler for Url modal, AjaxTestDialogForm.

File

core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php, line 84

Class

AjaxTestDialogForm
Dummy form for testing DialogRenderer with _form routes.

Namespace

Drupal\ajax_test\Form

Code

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

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