You are here

constant COMMENT_NEW_LIMIT in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/comment/comment.module \COMMENT_NEW_LIMIT

The time cutoff for comments marked as read for entity types other node.

Comments changed before this time are always marked as read. Comments changed after this time may be marked new, updated, or read, depending on their state for the current user. Defaults to 30 days ago.

@todo Remove when https://www.drupal.org/node/1029708 lands.

1 use of COMMENT_NEW_LIMIT
CommentManager::getCountNewComments in core/modules/comment/src/CommentManager.php
Returns the number of new comments available on a given entity for a user.

File

core/modules/comment/comment.module, line 70
Enables users to comment on published content.

Code

define('COMMENT_NEW_LIMIT', REQUEST_TIME - 30 * 24 * 60 * 60);