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