You are here

class StubNegotiationMiddleware in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware

Hierarchy

Expanded class hierarchy of StubNegotiationMiddleware

File

core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php, line 140
Contains \Drupal\Tests\Core\StackMiddleware\NegotiationMiddlewareTest.

Namespace

Drupal\Tests\Core\StackMiddleware
View source
class StubNegotiationMiddleware extends NegotiationMiddleware {
  public function getContentType(Request $request) {
    return parent::getContentType($request);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant
NegotiationMiddleware::$app protected property The wrapped HTTP kernel.
NegotiationMiddleware::$formats protected property Contains a hashmap of format as key and mimetype as value.
NegotiationMiddleware::handle public function Handles a Request to convert it to a Response. Overrides HttpKernelInterface::handle
NegotiationMiddleware::registerFormat public function Registers a format for a given MIME type.
NegotiationMiddleware::__construct public function Constructs a new NegotiationMiddleware.
StubNegotiationMiddleware::getContentType public function Gets the normalized type of a request. Overrides NegotiationMiddleware::getContentType