function CommentStatisticsInterface::getMaximumCount
Same name in other branches
- 9 core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::getMaximumCount()
- 8.9.x core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::getMaximumCount()
- 11.x core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::getMaximumCount()
Find the maximum number of comments for the given entity type.
Used to influence search rankings.
Parameters
string $entity_type: The entity type to consider when fetching the maximum comment count for.
Return value
int The maximum number of comments for and entity of the given type.
See also
comment_update_index()
File
-
core/
modules/ comment/ src/ CommentStatisticsInterface.php, line 69
Class
- CommentStatisticsInterface
- Provides an interface for storing and retrieving comment statistics.
Namespace
Drupal\commentCode
public function getMaximumCount($entity_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.