diff --git a/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php index 13d2a34..0dd8e2f 100644 --- a/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php @@ -81,9 +81,10 @@ public function onViewRenderArray(GetResponseForControllerResultEvent $event) { // Render the controller result into a response if it's a render array. if (is_array($result)) { // We default to requestFormat() because content negotiation uses this as - // its fallback method when format matching fails to match a route to - // display a 406. - // TODO - This logic should be replaced in https://www.drupal.org/node/2364011 with a more clear opt in to avoid cache poisoning. + // its fallback method for displaying a 406 when we fail to match a route + // based on format. + // @todo this logic should be replaced with a more clear opt in to avoid + // cache poisoning. https://www.drupal.org/node/2364011 $wrapper = $request->query->get(static::WRAPPER_ENVELOPE, $request->getRequestFormat()); if (isset($this->mainContentRenderers[$wrapper])) { $renderer = $this->classResolver->getInstanceFromDefinition($this->mainContentRenderers[$wrapper]);