You are here

public function MongodbCommentStatistics::delete in MongoDB 8

Delete comment statistics records for an entity.

Parameters

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

Overrides CommentStatisticsInterface::delete

File

mongodb_comment/src/MongodbCommentStatistics.php, line 91
Contains \Drupal\comment\CommentStatistics.

Class

MongodbCommentStatistics

Namespace

Drupal\mongodb_comment

Code

public function delete(EntityInterface $entity) {
  return;
  $this->database
    ->delete('comment_entity_statistics')
    ->condition('entity_id', $entity
    ->id())
    ->condition('entity_type', $entity
    ->getEntityTypeId())
    ->execute();
}