diff --git a/core/lib/Drupal/Core/Routing/Enhancer/RequestFormatEnhancer.php b/core/lib/Drupal/Core/Routing/Enhancer/RequestFormatEnhancer.php index 5e7be47..36861b0 100644 --- a/core/lib/Drupal/Core/Routing/Enhancer/RequestFormatEnhancer.php +++ b/core/lib/Drupal/Core/Routing/Enhancer/RequestFormatEnhancer.php @@ -14,15 +14,16 @@ /** * Sets the format of the Request based on the route information. * - * In this case we are modifying the request, not the route data, but it - * is the most logical place to set this value. + * In this case we are modifying the request, not the route data, but it is the + * most logical place to set this value, because other Enhancers rely on it, so + * this class has a high priority defined to run before the other ones. */ class RequestFormatEnhancer implements RouteEnhancerInterface { /** * Content negotiation library. * - * @var \Drupal\CoreContentNegotiation + * @var \Drupal\Core\ContentNegotiation */ protected $negotiation;