diff --git a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php index fc69554..ca58809 100644 --- a/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php +++ b/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php @@ -79,8 +79,8 @@ public function initDisplay(ViewExecutable $view, array &$display, array &$optio $request = $container->get('request'); $request_content_type = $negotiation->getContentType($request); - // Only set the requested content type if it's not 'html'. The default - // 'json' content will be used in this case. + // Only determine the requested content type if it's not 'html'. The default + // 'json' content will be used else. if ($request_content_type !== 'html') { $this->setContentType($request_content_type); }