From 52cd7e9187146d560f44a72ef9f910da587eb85d Mon Sep 17 00:00:00 2001 From: xjm Date: Sat, 16 Jul 2016 17:08:33 +0200 Subject: [PATCH] Issue #2763539 by felribeiro: Bug in doxygen for adding headers to a response via render #attached --- .../Core/Render/AttachmentsResponseProcessorInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php b/core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php index 4b78fc00ebb..14cc6a215da 100644 --- a/core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php +++ b/core/lib/Drupal/Core/Render/AttachmentsResponseProcessorInterface.php @@ -25,7 +25,7 @@ interface AttachmentsResponseProcessorInterface { * $build['#attached']['library'][] = [ * 'library' => ['core/jquery'] * ]; - * $build['#attached']['http_header'][] = [ + * $build['#attached']['http_header'] = [ * ['Content-Type', 'application/rss+xml; charset=utf-8'], * ]; * @endcode