Problem

We improved toRenderArray() to respect the new default-render-variant setting. That makes a lot of sense for traditional requests, but for API requests we need to render into markup always. You don't want a preview to appear there.

Proposed resolution

Detect presence of lupus_ce_renderer and active API requests, keep default to "markup" for those.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

implemented this. added a new render-helper service for better code organization.

  • fago committed 86cb8c47 on 3.x
    fix: #3561251 Always render to markup format in Lupus CE Renderer API...
fago’s picture

Status: Needs review » Fixed

Works good. Merged.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.