function comment_ranking

You are here

7 comment.module comment_ranking()
8 comment.module comment_ranking()

Implements hook_ranking().

File

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

Code

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