function AjaxTestController::constructor

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php \Drupal\ajax_test\Controller\AjaxTestController::constructor()

Provides a valid AJAX response for the "constructor" URL.

Return value

\Symfony\Component\HttpFoundation\Response The Ajax link.

1 string reference to 'AjaxTestController::constructor'
ajax_test.routing.yml in core/modules/system/tests/modules/ajax_test/ajax_test.routing.yml
core/modules/system/tests/modules/ajax_test/ajax_test.routing.yml

File

core/modules/system/tests/modules/ajax_test/src/Controller/AjaxTestController.php, line 537

Class

AjaxTestController
Provides content for dialog tests.

Namespace

Drupal\ajax_test\Controller

Code

public function constructor() : Response {
  return new JsonResponse();
}

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