Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / mail / Hook / SendWatchlistEmailNotificationHook.php
blob9ce6fc134eb611e4795ce4789ec52fb9fb9ee630
1 <?php
3 namespace MediaWiki\Hook;
5 use EmailNotification;
6 use MediaWiki\Title\Title;
7 use MediaWiki\User\User;
9 /**
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
14 * @ingroup Hooks
16 interface SendWatchlistEmailNotificationHook {
17 /**
18 * Use this hook to cancel watchlist email notifications (enotifwatchlist) for an edit.
20 * @since 1.35
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 );