public function FormTestMiddleware::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php \Drupal\form_test\StackMiddleware\FormTestMiddleware::__construct()
- 9 core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php \Drupal\form_test\StackMiddleware\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;
}