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\Hook

Code

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.