Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / mail / Hook / UserMailerTransformContentHook.php
blobff71ac91d99f250a441df1f399433a232c5cafa2
1 <?php
3 namespace MediaWiki\Hook;
5 use MailAddress;
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "UserMailerTransformContent" to register handlers implementing this interface.
11 * @stable to implement
12 * @ingroup Hooks
14 interface UserMailerTransformContentHook {
15 /**
16 * This hook is called in UserMailer::send() to change email contents.
18 * @since 1.35
20 * @param MailAddress[] $to Array of addresses of the targets
21 * @param MailAddress $from Address of the sender
22 * @param string|array &$body Email body, either a string (for plaintext emails) or an array with
23 * 'text' and 'html' keys
24 * @param string &$error Error message
25 * @return bool|void True or no return value to continue, or false and set $error to
26 * block sending the email
28 public function onUserMailerTransformContent( $to, $from, &$body, &$error );