diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index d836d01..820493f 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -437,7 +437,7 @@ function comment_entity_view(EntityInterface $entity, EntityViewDisplayInterface return; } if ($view_mode == 'search_index' || $view_mode == 'search_result' || $view_mode == 'print') { - // We don't want this links if we're building the entity for: + // Do not add any links if the entity displayed for: // - search indexing. // - constructing a search result excerpt. // - print. diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php b/core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php index 0664a7c..3250990 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php @@ -143,7 +143,7 @@ public function viewElements(FieldItemListInterface $items) { } // Append comment form if the comments are open and the form is set to - // display below the entity. Do not show the form for print view mode. + // display below the entity. Do not show the form for the print view mode. if ($status == COMMENT_OPEN && $comment_settings['form_location'] == COMMENT_FORM_BELOW && $this->viewMode != 'print') { // Only show the add comment form if the user has permission. if ($this->currentUser->hasPermission('post comments')) {