MediaWiki REL1_40
MediaWiki\Auth\Hook\LocalUserCreatedHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

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

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

Stability: 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.

After this hook User::saveSettings is called to save all modification done in the hook handlers, like changed user properties or changed user preferences.

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: