class StubNegotiationMiddleware in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
- 9 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
Hierarchy
- class \Drupal\Core\StackMiddleware\NegotiationMiddleware implements \Symfony\Component\HttpKernel\HttpKernelInterface
- class \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
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\StackMiddlewareView source
class StubNegotiationMiddleware extends NegotiationMiddleware {
public function getContentType(Request $request) {
return parent::getContentType($request);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NegotiationMiddleware:: |
protected | property | The wrapped HTTP kernel. | |
NegotiationMiddleware:: |
protected | property | Contains a hashmap of format as key and mimetype as value. | |
NegotiationMiddleware:: |
public | function | ||
NegotiationMiddleware:: |
public | function | Registers a format for a given MIME type. | |
NegotiationMiddleware:: |
public | function | Constructs a new NegotiationMiddleware. | |
StubNegotiationMiddleware:: |
public | function |
Gets the normalized type of a request. Overrides NegotiationMiddleware:: |