function CommentStatisticsInterface::update

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

Update or insert comment statistics records after a comment is added.

Parameters

\Drupal\comment\CommentInterface $comment: The comment added or updated.

File

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

Class

CommentStatisticsInterface
Provides an interface for storing and retrieving comment statistics.

Namespace

Drupal\comment

Code

public function update(CommentInterface $comment);

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