MediaWiki REL1_35
MediaWiki\Hook\UserMailerTransformContentHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\UserMailerTransformContentHook:

Public Member Functions

 onUserMailerTransformContent ( $to, $from, &$body, &$error)
 This hook is called in UserMailer::send() to change email contents.
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserMailerTransformContentHook.php.

Member Function Documentation

◆ onUserMailerTransformContent()

MediaWiki\Hook\UserMailerTransformContentHook::onUserMailerTransformContent (   $to,
  $from,
$body,
$error 
)

This hook is called in UserMailer::send() to change email contents.

Since
1.35
Parameters
MailAddress[]$toArray of addresses of the targets
MailAddress$fromAddress of the sender
string | array&$bodyEmail body, either a string (for plaintext emails) or an array with 'text' and 'html' keys
string&$errorError message
Returns
bool|void True or no return value to continue, or false and set $error to block sending the email

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: