diff --git a/core/modules/comment/src/CommentManager.php b/core/modules/comment/src/CommentManager.php index 0863dc3..1bed270 100644 --- a/core/modules/comment/src/CommentManager.php +++ b/core/modules/comment/src/CommentManager.php @@ -314,7 +314,7 @@ public function forbiddenMessage(EntityInterface $entity, $field_name) { return ''; } - /* + /** * {@inheritdoc} */ public function getCountNewComments(EntityInterface $entity, $field_name = NULL, $timestamp = 0) { @@ -355,4 +355,5 @@ public function getCountNewComments(EntityInterface $entity, $field_name = NULL, } return FALSE; } + } diff --git a/core/modules/comment/src/CommentManagerInterface.php b/core/modules/comment/src/CommentManagerInterface.php index 53ca6c8..ef9e861 100644 --- a/core/modules/comment/src/CommentManagerInterface.php +++ b/core/modules/comment/src/CommentManagerInterface.php @@ -91,9 +91,10 @@ public function forbiddenMessage(EntityInterface $entity, $field_name); * @param \Drupal\Core\Entity\EntityInterface $entity * The entity to which the comments are attached to. * @param string $field_name - * The field_name to count comments for. Defaults to any field. + * (optional) The field_name to count comments for. Defaults to any field. * @param int $timestamp - * Time to count from. Defaults to time of last user access the entity. + * (optional) Time to count from. Defaults to time of last user access the + * entity. * * @return int|false * The number of new comments or FALSE if the user is not authenticated.