NegotiationMiddleware::$formats
Same name in other branches
- 8.9.x core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::formats
- 10 core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::formats
- 11.x core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php \Drupal\Core\StackMiddleware\NegotiationMiddleware::formats
Contains a hashmap of format as key and mimetype as value.
Type: array
File
-
core/
lib/ Drupal/ Core/ StackMiddleware/ NegotiationMiddleware.php, line 26
Class
- NegotiationMiddleware
- Provides a middleware to determine the content type upon the accept header.
Namespace
Drupal\Core\StackMiddlewareCode
protected $formats = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.