function comment_ranking in Drupal 9
Same name and namespace in other branches
- 8 core/modules/comment/comment.module \comment_ranking()
- 7 modules/comment/comment.module \comment_ranking()
Implements hook_ranking().
File
- core/
modules/ comment/ comment.module, line 697 - Enables users to comment on published content.
Code
function comment_ranking() {
return \Drupal::service('comment.statistics')
->getRankingInfo();
}