8.2.x comment.module comment_ranking()
8.0.x comment.module comment_ranking()
8.1.x comment.module comment_ranking()
7.x comment.module comment_ranking()

Implements hook_ranking().

File

core/modules/comment/comment.module, line 757
Enables users to comment on published content.

Code

function comment_ranking() {
  return \Drupal::service('comment.statistics')->getRankingInfo();
}