HISTORY_READ_LIMIT
Entities changed before this time are always shown as read.
Entities changed within this time may be marked as 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.
5 uses of HISTORY_READ_LIMIT
- CommentManager::getCountNewComments in core/
modules/ comment/ src/ CommentManager.php - Returns the number of new comments on a given entity for the current user.
- HistoryUserTimestamp::query in core/
modules/ history/ src/ Plugin/ views/ filter/ HistoryUserTimestamp.php - Add this filter to the query.
- HistoryUserTimestamp::render in core/
modules/ history/ src/ Plugin/ views/ field/ HistoryUserTimestamp.php - Renders the field.
- NodeNewComments::preRender in core/
modules/ history/ src/ Plugin/ views/ field/ NodeNewComments.php - Runs before any fields are rendered.
- node_mark in core/
modules/ node/ node.module - Determines the type of marker to be displayed for a given node.
File
-
core/
modules/ history/ history.module, line 15
Code
define('HISTORY_READ_LIMIT', (int) $_SERVER['REQUEST_TIME'] - 30 * 24 * 60 * 60);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.