MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onUserClearNewTalkNotification ( $userIdentity, $oldid) | |
This hook is called post-send when viewing a user talk page. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserClearNewTalkNotification" to register handlers implementing this interface.
Definition at line 14 of file UserClearNewTalkNotificationHook.php.
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.
UserIdentity | $userIdentity | User that will clear the message |
int | $oldid | Revision ID of the talk page being viewed (0 means the most recent one) |
Implemented in MediaWiki\HookContainer\HookRunner.