function ForumManagerInterface::unreadTopics
Same name in other branches
- 9 core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::unreadTopics()
- 10 core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::unreadTopics()
- 11.x core/modules/forum/src/ForumManagerInterface.php \Drupal\forum\ForumManagerInterface::unreadTopics()
Calculates the number of new posts in a forum that the user has not yet read.
Nodes are new if they are newer than HISTORY_READ_LIMIT.
Parameters
int $term: The term ID of the forum.
int $uid: The user ID.
Return value
The number of new posts in the forum that have not been read by the user.
1 method overrides ForumManagerInterface::unreadTopics()
- ForumManager::unreadTopics in core/
modules/ forum/ src/ ForumManager.php - Calculates the number of new posts in a forum that the user has not yet read.
File
-
core/
modules/ forum/ src/ ForumManagerInterface.php, line 94
Class
- ForumManagerInterface
- Provides forum manager interface.
Namespace
Drupal\forumCode
public function unreadTopics($term, $uid);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.