function CommentHooks::ranking
Implements hook_ranking().
File
-
core/
modules/ comment/ src/ Hook/ CommentHooks.php, line 475
Class
- CommentHooks
- Hook implementations for comment.
Namespace
Drupal\comment\HookCode
public function 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.