Skip to main content
13 events
when toggle format what by license comment
May 3, 2019 at 22:57 comment added Berend de Boer Don't use safe_value, but processed, i.e. $node->body->processed
Dec 12, 2018 at 22:49 comment added Geat If it helps anyone, I was using check_markup to render a field containing a token that outputs a webform, and it wasn't attaching the JS libraries. It was only when I switched to 4k4's approach that it started working. Lost a morning to that one.
Jun 19, 2017 at 8:25 comment added Jaypan I gave 4k4's answer an upvote, as it looks to be a better way to go about it.
Jun 19, 2017 at 7:06 comment added Jaypan I edited my code to work with that. I thought safe_value existed in D8, but maybe I was just imagining.
Jun 19, 2017 at 7:05 history edited Jaypan CC BY-SA 3.0
added 37 characters in body
Jun 19, 2017 at 6:01 comment added No Sssweat I get this
Jun 19, 2017 at 5:51 comment added Jaypan What do you get for this: kint($node->get('body')->getValue())
Jun 19, 2017 at 5:51 comment added No Sssweat kint($node->get('body')->safe_value); gives me NULL
Jun 19, 2017 at 4:27 comment added Jaypan Is safe_value empty, or is the twig value just not printing it?
Jun 19, 2017 at 4:12 comment added No Sssweat I thought ->safe_value worked, but it's actually not printing anything.
Jun 19, 2017 at 3:16 comment added No Sssweat Thanks, I am surprised that nothing in D8 Core uses the ->safe_value, but reading this made me feel good about it.
Jun 19, 2017 at 3:14 vote accept No Sssweat
Jun 19, 2017 at 4:11
Jun 19, 2017 at 2:55 history answered Jaypan CC BY-SA 3.0