CommentThreadGate
in
Lets the module that owns the commented content refuse new comments in a thread (e.g. Discussion: the author switched comments off with `show_comments = 0`). Base must not read foreign module tables, so the owner implements this interface; {@see CommentThreadGateRegistry} asks every implementation.
Table of Contents
Methods
- acceptsComments() : bool|null
Methods
acceptsComments()
public
acceptsComments(ThreadType $type, int $threadId) : bool|null
Parameters
- $type : ThreadType
- $threadId : int
Return values
bool|null —false = refuse, true = allow, null = not my thread type (no opinion)