3 namespace MediaWiki\Mail\Hook
;
5 use MediaWiki\Permissions\Authority
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "EmailUserAuthorizeSend" to register handlers implementing this interface.
12 * @stable to implement
16 interface EmailUserAuthorizeSendHook
{
18 * This hook is called when checking whether a user is allowed to send emails.
20 * @param Authority $sender
21 * @param StatusValue $status Add any error here
22 * @return bool|void True or no return value to continue, false to abort, which also requires adding
23 * a fatal error to $status.
25 public function onEmailUserAuthorizeSend( Authority
$sender, StatusValue
$status );