How to read / use result of twig dump()

Created on 2 July 2023, over 1 year ago
Updated 3 July 2023, over 1 year 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 18 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.71.5 2024