You are here

public function CommentStatisticsInterface::create in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::create()

Insert an empty record for the given entity.

Parameters

\Drupal\Core\Entity\FieldableEntityInterface $entity: The created entity for which a statistics record is to be initialized.

array $fields: Array of comment field definitions for the given entity.

1 method overrides CommentStatisticsInterface::create()
CommentStatistics::create in core/modules/comment/src/CommentStatistics.php
Insert an empty record for the given entity.

File

core/modules/comment/src/CommentStatisticsInterface.php, line 83
Contains \Drupal\comment\CommentStatisticsInterface.

Class

CommentStatisticsInterface
Provides an interface for storing and retrieving comment statistics.

Namespace

Drupal\comment

Code

public function create(FieldableEntityInterface $entity, $fields);