ForumManagerInterface
interface ForumManagerInterface (View source)
Provides forum manager interface.
Methods
Utility method to fetch the child forums for a given forum.
Generates and returns the forum index.
Resets the ForumManager index and history.
Checks whether a node can be used in a forum, based on its content type.
Calculates the number of new posts in a forum that the user has not yet read.
Details
array
getTopics(int $tid, AccountInterface $account)
Gets list of forum topics.
array
getChildren(int $vid, int $tid)
Utility method to fetch the child forums for a given forum.
TermInterface
getIndex()
Generates and returns the forum index.
The forum index is a pseudo term that provides an overview of all forums.
resetCache()
Resets the ForumManager index and history.
bool
checkNodeType(NodeInterface $node)
Checks whether a node can be used in a forum, based on its content type.
The
unreadTopics(int $term, int $uid)
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.