projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Render
/
HtmlResponse.php
diff --git
a/web/core/lib/Drupal/Core/Render/HtmlResponse.php
b/web/core/lib/Drupal/Core/Render/HtmlResponse.php
index 555e504cf6c4d5e47f097da74220475a4eb9495a..763696d109deec1c9a0c4d50389c174646541bcf 100644
(file)
--- a/
web/core/lib/Drupal/Core/Render/HtmlResponse.php
+++ b/
web/core/lib/Drupal/Core/Render/HtmlResponse.php
@@
-31,9
+31,11
@@
class HtmlResponse extends Response implements CacheableResponseInterface, Attac
// A render array can automatically be converted to a string and set the
// necessary metadata.
if (is_array($content) && (isset($content['#markup']))) {
// A render array can automatically be converted to a string and set the
// necessary metadata.
if (is_array($content) && (isset($content['#markup']))) {
- $content += ['#attached' => [
- 'html_response_attachment_placeholders' => [],
- 'placeholders' => []],
+ $content += [
+ '#attached' => [
+ 'html_response_attachment_placeholders' => [],
+ 'placeholders' => [],
+ ],
];
$this->addCacheableDependency(CacheableMetadata::createFromRenderArray($content));
$this->setAttachments($content['#attached']);
];
$this->addCacheableDependency(CacheableMetadata::createFromRenderArray($content));
$this->setAttachments($content['#attached']);