public function CommentStatisticsInterface::getMaximumCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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()
1 method overrides CommentStatisticsInterface::getMaximumCount()
- CommentStatistics::getMaximumCount in core/
modules/ comment/ src/ CommentStatistics.php - Find the maximum number of comments for the given entity type.
File
- core/
modules/ comment/ src/ CommentStatisticsInterface.php, line 73 - Contains \Drupal\comment\CommentStatisticsInterface.
Class
- CommentStatisticsInterface
- Provides an interface for storing and retrieving comment statistics.
Namespace
Drupal\commentCode
public function getMaximumCount($entity_type);