public function CommentStatistics::delete in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/CommentStatistics.php \Drupal\comment\CommentStatistics::delete()
- 9 core/modules/comment/src/CommentStatistics.php \Drupal\comment\CommentStatistics::delete()
File
- core/
modules/ comment/ src/ CommentStatistics.php, line 94
Class
Namespace
Drupal\commentCode
public function delete(EntityInterface $entity) {
$this->database
->delete('comment_entity_statistics')
->condition('entity_id', $entity
->id())
->condition('entity_type', $entity
->getEntityTypeId())
->execute();
}