3 namespace MediaWiki\Hook
;
6 use MediaWiki\Title\Title
;
7 use MediaWiki\User\User
;
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "SendWatchlistEmailNotification" to register handlers implementing this interface.
13 * @stable to implement
16 interface SendWatchlistEmailNotificationHook
{
18 * Use this hook to cancel watchlist email notifications (enotifwatchlist) for an edit.
22 * @param User $targetUser User whom to send watchlist email notification
23 * @param Title $title Page title
24 * @param EmailNotification $enotif
25 * @return bool|void True or no return value to send watchlist email
26 * notification, or false to abort
28 public function onSendWatchlistEmailNotification( $targetUser, $title, $enotif );