MediaWiki  master
MediaWiki\User\Hook\UserCanSendEmailHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\User\Hook\UserCanSendEmailHook:

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserCanSendEmail" to register handlers implementing this interface.

Stable to implement

Definition at line 14 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: