comment_cron

comment_cron()

Implements hook_cron().

File

core/modules/comment/comment.module, line 477
Enables users to comment on published content.

Code

1
2
3
4
5
function comment_cron() {
  // Store the maximum possible comments per thread (used for node search
  // ranking by reply count).
  \Drupal::state()->set('comment.node_comment_statistics_scale', 1.0 / max(1, \Drupal::service('comment.statistics')->getMaximumCount('node')));
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.