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

Breadcrumb

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

function 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.

File

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

Class

CommentStatisticsInterface
Provides an interface for storing and retrieving comment statistics.

Namespace

Drupal\comment

Code

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

API Navigation

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