Overrides Drupal\Core\Entity\DatabaseStorageController::postSave().
Overrides DatabaseStorageController::postSave
protected function postSave(EntityInterface $comment, $update) {
$this
->releaseThreadLock();
// Update the {node_comment_statistics} table prior to executing the hook.
$this
->updateNodeStatistics($comment->nid);
if ($comment->status == COMMENT_PUBLISHED) {
module_invoke_all('comment_publish', $comment);
}
}