MediaWiki  master
MediaWiki\Auth\Hook\LocalUserCreatedHook Interface Reference

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

Inheritance diagram for MediaWiki\Auth\Hook\LocalUserCreatedHook:

Public Member Functions

 onLocalUserCreated ( $user, $autocreated)
 This hook is called when a local user has been created. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file LocalUserCreatedHook.php.

Member Function Documentation

◆ onLocalUserCreated()

MediaWiki\Auth\Hook\LocalUserCreatedHook::onLocalUserCreated (   $user,
  $autocreated 
)

This hook is called when a local user has been created.

Since
1.35
Parameters
User$userUser object for the created user
bool$autocreatedWhether this was an auto-creation
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: