function CommentStatisticsInterface::read

Same name in other branches
  1. 9 core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::read()
  2. 8.9.x core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::read()
  3. 11.x core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::read()

Read comment statistics records for an array of entities.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: Array of entities on which commenting is enabled, keyed by id

string $entity_type: The entity type of the passed entities.

bool $accurate: (optional) Indicates if results must be completely up to date. If set to FALSE, a replica database will used if available. Defaults to TRUE.

Return value

object[] Array of statistics records.

File

core/modules/comment/src/CommentStatisticsInterface.php, line 38

Class

CommentStatisticsInterface
Provides an interface for storing and retrieving comment statistics.

Namespace

Drupal\comment

Code

public function read($entities, $entity_type, $accurate = TRUE);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.