addComment
The addComment hook is triggered when a comment is added. It passes the ID of
the record and the data array as arguments and does not expect a return value.
Parameters
int
$commentIdID of the new comment database record (Table
tl_comments).array
$commentDataData of the new comment record (not including the ID).
\Contao\Comments
$commentsThe instance of the
\Contao\Commentsclass that triggered the hook.