ImageBase64Formatter tries to render a plain string

Created on 9 September 2022, over 2 years ago
Updated 6 April 2023, almost 2 years ago

Problem/Motivation

In the ImageBase64Formatter, we're trying to render a plain string.. This change was introduced in the 1.12 version.
(line 264)
$markup = Markup::create(\Drupal::service('renderer')->render($markup));

Proposed resolution

Revert this change, this functionality is impossible.
Unless you were trying to achieve:
(line 264)
$markup = \Drupal::service('renderer')->render(Markup::create($markup));

Remaining tasks

Reviewing and committing the attached patch.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium RandalV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024