class StubNegotiationMiddleware

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
  2. 10 core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\StubNegotiationMiddleware
  3. 11.x 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 extends \Drupal\Core\StackMiddleware\NegotiationMiddleware

Expanded class hierarchy of StubNegotiationMiddleware

File

core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php, line 152

Namespace

Drupal\Tests\Core\StackMiddleware
View 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::$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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.