class StubNegotiationMiddleware
Stub class for testing NegotiationMiddleware.
Hierarchy
- class \Drupal\Core\StackMiddleware\NegotiationMiddleware implements \Symfony\Component\HttpKernel\HttpKernelInterface
- class \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware extends \Drupal\Core\StackMiddleware\NegotiationMiddleware
Expanded class hierarchy of StubNegotiationMiddleware
File
-
core/
tests/ Drupal/ Tests/ Core/ StackMiddleware/ NegotiationMiddlewareTest.php, line 159
Namespace
Drupal\Tests\Core\StackMiddlewareView source
class StubNegotiationMiddleware extends NegotiationMiddleware {
public function getContentType(Request $request) {
return parent::getContentType($request);
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
|---|---|---|---|---|
| NegotiationMiddleware::$formats | protected | property | Contains a hashmap of format as key and mimetype as value. | |
| NegotiationMiddleware::$httpKernel | protected | property | The wrapped HTTP kernel. | |
| 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 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.