MediaWiki REL1_39
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 post-send when viewing a user talk page.
 

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 post-send when viewing a user talk page.

The hook may be aborted, in which case the TalkPageNotificationManager service will not clear the "You have new messages!" notification, and if the page is on the viewer's watchlist then WatchlistManager will also not update the "seen" marker.

See also
\MediaWiki\Users watchlist handling\WatchlistManager::clearTitleUserNotifications
Since
1.35
Parameters
UserIdentity$userIdentityUser that will clear the message
int$oldidRevision ID of the talk page being viewed (0 means the most recent one)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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