class TestResponseController
Same name in other branches
- 10 core/modules/system/tests/modules/http_middleware_test/src/Controller/TestResponseController.php \Drupal\http_middleware_test\Controller\TestResponseController
Controller routines for http_middleware_test routes.
Hierarchy
- class \Drupal\http_middleware_test\Controller\TestResponseController
Expanded class hierarchy of TestResponseController
File
-
core/
modules/ system/ tests/ modules/ http_middleware_test/ src/ Controller/ TestResponseController.php, line 12
Namespace
Drupal\http_middleware_test\ControllerView source
final class TestResponseController {
/**
* Returns a test response.
*/
public function testResponse() : Response {
return new Response('<html><body><p>Mangoes</p></body></html>');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestResponseController::testResponse | public | function | Returns a test response. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.