function CommentHooks::ranking
Same name and namespace in other branches
- 11.x core/modules/comment/src/Hook/CommentHooks.php \Drupal\comment\Hook\CommentHooks::ranking()
Implements hook_node_search_ranking().
Attributes
#[Hook('node_search_ranking')]
File
-
core/
modules/ comment/ src/ Hook/ CommentHooks.php, line 423
Class
- CommentHooks
- Hook implementations for comment.
Namespace
Drupal\comment\HookCode
public function ranking() : array {
return \Drupal::service('comment.statistics')->getRankingInfo();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.