function TestResponseController::testResponse

Same name in other branches
  1. 10 core/modules/system/tests/modules/http_middleware_test/src/Controller/TestResponseController.php \Drupal\http_middleware_test\Controller\TestResponseController::testResponse()

Returns a test response.

1 string reference to 'TestResponseController::testResponse'
http_middleware_test.routing.yml in core/modules/system/tests/modules/http_middleware_test/http_middleware_test.routing.yml
core/modules/system/tests/modules/http_middleware_test/http_middleware_test.routing.yml

File

core/modules/system/tests/modules/http_middleware_test/src/Controller/TestResponseController.php, line 17

Class

TestResponseController
Controller routines for http_middleware_test routes.

Namespace

Drupal\http_middleware_test\Controller

Code

public function testResponse() : Response {
    return new Response('<html><body><p>Mangoes</p></body></html>');
}

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