MediaWiki REL1_37
MediaWiki\User\Hook\UserClearNewTalkNotificationHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserClearNewTalkNotification" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 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: