function comment_ranking

Implements hook_ranking().

File

core/modules/comment/comment.module, line 735

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.