How to read / use result of twig dump()

Created on 2 July 2023, 12 months ago
Updated 3 July 2023, 12 months ago

For a comment the {{ title }} variable prints the comment subject together with a link to the comment.

So I want to print just the comment subject without the link.

I have added {{ dump() }} to my comment.html.twig - result with dump output is here

So with this dump output what is the syntax to say in comment.html.twig print the comment subject without the link?

I have tried a few things which have not worked such as {{ comment.subject }} or {{ title.0 }}

Or in other words, what are some examples of using the output of dump() in my template file?

πŸ’¬ Support request
Status

Closed: outdated

Version

10.1 ✨

Component
CommentΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom Juc1

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

Comments & Activities

Production build 0.69.0 2024