function CommentStatisticsInterface::create
Same name in other branches
- 9 core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::create()
- 8.9.x core/modules/comment/src/CommentStatisticsInterface.php \Drupal\comment\CommentStatisticsInterface::create()
- 10 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.
File
-
core/
modules/ comment/ src/ CommentStatisticsInterface.php, line 79
Class
- CommentStatisticsInterface
- Provides an interface for storing and retrieving comment statistics.
Namespace
Drupal\commentCode
public function create(FieldableEntityInterface $entity, $fields);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.