function FormTestMiddleware::__construct
Constructs a FormTestMiddleware object.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ StackMiddleware/ FormTestMiddleware.php, line 27
Class
- FormTestMiddleware
- Provides a test middleware which sets a custom response header.
Namespace
Drupal\form_test\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel) {
$this->httpKernel = $http_kernel;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.