Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NegotiationMiddleware.php

function 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\StackMiddleware

Code

public function __construct(HttpKernelInterface $app) {
    $this->app = $app;
}
RSS feed
Powered by Drupal