function CommentStatistics::getMaximumCount
Same name in other branches
- 9 core/modules/comment/src/CommentStatistics.php \Drupal\comment\CommentStatistics::getMaximumCount()
- 10 core/modules/comment/src/CommentStatistics.php \Drupal\comment\CommentStatistics::getMaximumCount()
- 11.x core/modules/comment/src/CommentStatistics.php \Drupal\comment\CommentStatistics::getMaximumCount()
Overrides CommentStatisticsInterface::getMaximumCount
File
-
core/
modules/ comment/ src/ CommentStatistics.php, line 163
Class
Namespace
Drupal\commentCode
public function getMaximumCount($entity_type) {
return $this->database
->query('SELECT MAX(comment_count) FROM {comment_entity_statistics} WHERE entity_type = :entity_type', [
':entity_type' => $entity_type,
])
->fetchField();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.