You are here

constant HISTORY_READ_LIMIT in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/history/history.module \HISTORY_READ_LIMIT
  2. 9 core/modules/history/history.module \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.

8 uses of HISTORY_READ_LIMIT
CommentManager::getCountNewComments in core/modules/comment/src/CommentManager.php
ForumManager::lastVisit in core/modules/forum/src/ForumManager.php
Gets the last time the user viewed a node.
ForumManager::unreadTopics in core/modules/forum/src/ForumManager.php
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

... See full list

File

core/modules/history/history.module, line 26
Records which users have read which content.

Code

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