function NegotiationMiddleware::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::__construct()
- 8.9.x core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::__construct()
- 11.x core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::__construct()
Constructs a new NegotiationMiddleware.
Parameters
\Symfony\Component\HttpKernel\HttpKernelInterface $app: The wrapper HTTP kernel
File
-
core/
lib/ Drupal/ Core/ StackMiddleware/ NegotiationMiddleware.php, line 34
Class
- NegotiationMiddleware
- Provides a middleware to determine the content type upon the accept header.
Namespace
Drupal\Core\StackMiddlewareCode
public function __construct(HttpKernelInterface $app) {
$this->app = $app;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.