Casting Twig_Markup to string in Twig
My HTML, or what I thought was HTML, was actually generating an object of type Twig_Markup
rather than a string
, and therefore wasn't passing json
validation.
Hmm. raw
didn't work.
Welcome. My name is Jeremiah John, sf/f author & activist.I tell liberationist stories.. . . More About Me
My HTML, or what I thought was HTML, was actually generating an object of type Twig_Markup
rather than a string
, and therefore wasn't passing json
validation.
Hmm. raw
didn't work.
Sometimes, you've got a Drupal twig function that doesn't exist in PatternLab, and it prevents PatternLab from building.
You get this error: