MediaWiki  master
MediaWiki\User\Hook\UserIsLockedHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserIsLockedHook:

Public Member Functions

 onUserIsLocked ( $user, &$locked)
 Use this hook to establish that a user is locked. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserIsLockedHook.php.

Member Function Documentation

◆ onUserIsLocked()

MediaWiki\User\Hook\UserIsLockedHook::onUserIsLocked (   $user,
$locked 
)

Use this hook to establish that a user is locked.

See User::isLocked().

Since
1.35
Parameters
User$userUser in question.
bool&$lockedSet true if the user should be locked.
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: