Comment — author, date, body (comment.html.twig)
Open in builderThis is a property of the entity itself, so there’s no field name to fill in.
Raw entity
Open in builder (Raw entity)Reads the entity directly, before field formatters run.
- Snippet 1
{{ comment.getAuthorName( ) }} - Snippet 2
{{ comment.created. value| format_date( 'medium') }}
Render array
Open in builder (Render array)Reads the content render array, after field formatters run.
- Snippet 1
{{ author }} - Snippet 2
{{ created }} - Snippet 3
{{ content.comment_body }}
Gotcha
In comment.html.twig the entity is comment. author, created and permalink are ready-made template variables.