MediaWiki  master
MediaWiki\Hook\UserLogoutCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\UserLogoutCompleteHook:

Public Member Functions

 onUserLogoutComplete ( $user, &$inject_html, $oldName)
 This hook is called after a user has logged out. More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserLogoutCompleteHook.php.

Member Function Documentation

◆ onUserLogoutComplete()

MediaWiki\Hook\UserLogoutCompleteHook::onUserLogoutComplete (   $user,
$inject_html,
  $oldName 
)

This hook is called after a user has logged out.

Since
1.35
Parameters
User$userthe user object after logout (won't have name, ID, etc.)
string&$inject_htmlAny HTML to inject after the "logged out" message.
string$oldNamename of the user before logout (string)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner, and MediaWiki\Api\ApiHookRunner.


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