diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 5deef25..59e7d8d 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1226,11 +1226,11 @@ function comment_preprocess_field(&$variables) { $variables['comment_display_mode'] = $element[0]['#comment_display_mode']; $variables['comment_type'] = $element[0]['#comment_type']; - // Adjust a comment field special variables. + // Adjust a comment field attributes. $variables['attributes']['class'][] = 'comment-wrapper'; $variables['title_attributes']['class'][] = 'title'; - // Append additional attributes (eg. rdf) from the first field item. + // Append additional attributes (eg. RDFa) from the first field item. $variables['attributes'] += $variables['item_attributes'][0]->storage(); // Create separate variables for the comments and comment form. diff --git a/core/modules/comment/templates/field--comment.html.twig b/core/modules/comment/templates/field--comment.html.twig index 7a2dbcb..9aae572 100644 --- a/core/modules/comment/templates/field--comment.html.twig +++ b/core/modules/comment/templates/field--comment.html.twig @@ -15,6 +15,8 @@ * - comments: List of comments rendered through comment.html.twig. * - content_attributes: HTML attributes for the form title. * - comment_form: The 'Add new comment' form. + * - comment_display_mode: Is the comments are threaded. + * - comment_type: The comment type bundle ID for the comment field. * * @see template_preprocess_field() * @see comment_preprocess_field()