class StubNegotiationMiddleware in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
Hierarchy
- class \Drupal\Core\StackMiddleware\NegotiationMiddleware implements HttpKernelInterface
- class \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
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\StackMiddlewareView source
class StubNegotiationMiddleware extends NegotiationMiddleware {
public function getContentType(Request $request) {
return parent::getContentType($request);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant | |||
NegotiationMiddleware:: |
protected | property | The wrapped HTTP kernel. | |
NegotiationMiddleware:: |
protected | property | Contains a hashmap of format as key and mimetype as value. | |
NegotiationMiddleware:: |
public | function |
Handles a Request to convert it to a Response. Overrides HttpKernelInterface:: |
|
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:: |