Manual:Hooks/GetLogTypesOnUser
GetLogTypesOnUser | |
---|---|
Available from version 1.23.0 Add log types where the _target is a userpage | |
Define function: | public static function onGetLogTypesOnUser( &$types ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"GetLogTypesOnUser": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetLogTypesOnUser"
}
}
|
Called from: | File(s): specials/SpecialLog.php |
Interface: | GetLogTypesOnUserHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:GetLogTypesOnUser extensions.
Details
edit- &$types: Array of log types