MediaWiki REL1_35
MediaWiki\User\Hook\UserClearNewTalkNotificationHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserClearNewTalkNotificationHook:

Public Member Functions

 onUserClearNewTalkNotification ( $userIdentity, $oldid)
 This hook is called before clearing the "You have new messages!" message.
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserClearNewTalkNotificationHook.php.

Member Function Documentation

◆ onUserClearNewTalkNotification()

MediaWiki\User\Hook\UserClearNewTalkNotificationHook::onUserClearNewTalkNotification (   $userIdentity,
  $oldid 
)

This hook is called before clearing the "You have new messages!" message.

Since
1.35
Parameters
UserIdentity$userIdentityUser that will clear the message
int$oldidID of the talk page revision being viewed (0 means the most recent one)
Returns
bool|void True or no return value to continue or false to abort (not clear the message)

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: