You are here

constant COMMENT_NEW_LIMIT in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/comment.module \COMMENT_NEW_LIMIT
  2. 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/2006632 lands.

1 use of COMMENT_NEW_LIMIT
CommentManager::getCountNewComments in core/modules/comment/src/CommentManager.php

File

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

Code

define('COMMENT_NEW_LIMIT', (int) $_SERVER['REQUEST_TIME'] - 30 * 24 * 60 * 60);