function comment_ranking
comment_ranking()
Implements hook_ranking().
File
- core/modules/comment/comment.module, line 756
- Enables users to comment on published content.
Code
function comment_ranking() { return \Drupal::service('comment.statistics')->getRankingInfo(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!comment!comment.module/function/comment_ranking/8.1.x