diff --git a/core/lib/Drupal/Core/Ajax/AjaxResponseRenderer.php b/core/lib/Drupal/Core/Ajax/AjaxResponseRenderer.php index 60b5302..eac0b62 100644 --- a/core/lib/Drupal/Core/Ajax/AjaxResponseRenderer.php +++ b/core/lib/Drupal/Core/Ajax/AjaxResponseRenderer.php @@ -31,7 +31,7 @@ public function render($content) { return $content; } - // Allow controllers to return an HtmlFragment or a Response object directly. + // Allow controllers to return an HtmlFragment directly. if ($content instanceof HtmlFragment) { $content = $content->getContent(); } diff --git a/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseRendererTest.php b/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseRendererTest.php index 2278e75..bfc6c9c 100644 --- a/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseRendererTest.php +++ b/core/tests/Drupal/Tests/Core/Ajax/AjaxResponseRendererTest.php @@ -87,7 +87,7 @@ public function testRenderWithString() { /** - * Tests the render method with an response object. + * Tests the render method with a response object. * * @covers \Drupal\Core\Ajax\AjaxResponseRenderer::render */