Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Unfortunately, adding the raw tag to the macro variable didn't solve the issue. When I dump what the macro returned, it's still a Markup object. object(Twig\Markup)#8733 (2) { ["content":"Twig\Markup":private]=> string(22297) " [{"sectionId":"5","typeId":"5", ... Commented Oct 26, 2020 at 21:03
  • Can you share the full macro? Commented Oct 27, 2020 at 2:16
  • I've added the full macro to the question. (I know it's a really bad way to handle this kind of stuff) Commented Oct 28, 2020 at 10:10
  • Hrm... I'm out of ideas. Are you comfortable with xDebug and PHPStorm? Could debug the compiled templates to get some additional insights. Commented Oct 28, 2020 at 20:14