diff --git a/core/modules/comment/templates/comment-wrapper.html.twig b/core/modules/comment/templates/comment-wrapper.html.twig index dbf37cd..fa68f71 100644 --- a/core/modules/comment/templates/comment-wrapper.html.twig +++ b/core/modules/comment/templates/comment-wrapper.html.twig @@ -18,7 +18,7 @@ * be displayed after the main title tag that appears in the template. * * The following variables are provided for contextual information. - * - node: The node entity to which the comments belong. + * - entity: The entity to which the comments belong. * - display_mode: The display mode for the comment listing, flat or threaded. * The constants below show the possible values and should be used for * comparison, as in the following example: @@ -37,7 +37,8 @@ */ #} - {% if comments and node.type != 'forum' %} + {{ dump(entity) }} + {% if comments and (entity.type != 'node' or entity.type != 'forum') %} {{ title_prefix }}

{{ 'Comments'|t }}

{{ title_suffix }}