You are here

class StubNegotiationMiddleware in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
  2. 9 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 158
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
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
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