MediaWiki REL1_35
MediaWiki\User\Hook\UserCanSendEmailHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserCanSendEmailHook:

Public Member Functions

 onUserCanSendEmail ( $user, &$canSend)
 Use this hook to override User::canSendEmail() permission check.
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserCanSendEmailHook.php.

Member Function Documentation

◆ onUserCanSendEmail()

MediaWiki\User\Hook\UserCanSendEmailHook::onUserCanSendEmail (   $user,
$canSend 
)

Use this hook to override User::canSendEmail() permission check.

Since
1.35
Parameters
User$userUser (object) whose permission is being checked
bool&$canSendSet on input, can override on output
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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