function CommentStatisticsInterface::delete

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

Delete comment statistics records for an entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for which comment statistics should be deleted.

1 method overrides CommentStatisticsInterface::delete()
CommentStatistics::delete in core/modules/comment/src/CommentStatistics.php
Delete comment statistics records for an entity.

File

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

Class

CommentStatisticsInterface
Provides an interface for storing and retrieving comment statistics.

Namespace

Drupal\comment

Code

public function delete(EntityInterface $entity);

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