diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index c3a9bc7..ece676a 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -610,8 +610,8 @@ function comment_add(EntityInterface $entity, $field_name = 'comment', $pid = NU * which returns objects instead of IDs. */ function comment_get_thread(EntityInterface $entity, $field_name, $mode, $comments_per_page, $pager_id = 0) { - $nodes = \Drupal::entityManager()->getStorage('comment')->loadThread($entity, $field_name, $mode, $comments_per_page, $pager_id); - return array_keys($nodes); + $comments = \Drupal::entityManager()->getStorage('comment')->loadThread($entity, $field_name, $mode, $comments_per_page, $pager_id); + return array_keys($comments); } /**