Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommentStatisticsInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal