core/lib/Drupal/Core/Render/Renderer.php | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 48b3bcd..5236b33 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -703,17 +703,16 @@ protected function createPlaceholder(array $element) {
// Generate placeholder markup. Note that the only requirement is that this
// is unique markup that isn't easily guessable. The #lazy_builder callback
- // and its arguments are put in the placeholder markup solely to simplify
+ // and its arguments are put in the placeholder markup solely to simplify<<<
// debugging.
- $attributes = new Attribute();
- $attributes['callback'] = $placeholder_render_array['#lazy_builder'][0];
- $attributes['arguments'] = UrlHelper::buildQuery($placeholder_render_array['#lazy_builder'][1]);
- $attributes['token'] = hash('crc32b', serialize($placeholder_render_array));
- $placeholder_markup = SafeMarkup::format('', ['@attributes' => $attributes]);
+ $callback = $placeholder_render_array['#lazy_builder'][0];
+ $arguments = UrlHelper::buildQuery($placeholder_render_array['#lazy_builder'][1]);
+ $token = hash('crc32b', serialize($placeholder_render_array));
+ $placeholder_markup = '';
// Build the placeholder element to return.
$placeholder_element = [];
- $placeholder_element['#markup'] = $placeholder_markup;
+ $placeholder_element['#markup'] = SafeString::create($placeholder_markup);
$placeholder_element['#attached']['placeholders'][$placeholder_markup] = $placeholder_render_array;
return $placeholder_element;
}