diff --git a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php index 13543a5..a86e11c 100644 --- a/core/modules/comment/lib/Drupal/comment/Entity/Comment.php +++ b/core/modules/comment/lib/Drupal/comment/Entity/Comment.php @@ -160,7 +160,7 @@ public function postSave(EntityStorageControllerInterface $storage_controller, $ // Update the {comment_entity_statistics} table prior to executing the hook. $storage_controller->updateEntityStatistics($this); if ($this->isPublished()) { - \Drupal::moduleHandler()->invokeAll('comment_publish', $this); + \Drupal::moduleHandler()->invokeAll('comment_publish', array($this)); } }