Skin:Minerva Neue/Hooks/SkinMinervaReplaceNotificationsBadge
(Redirected from Skin:Minerva Neue/SkinMinervaReplaceNotificationsBadge)
SkinMinervaReplaceNotificationsBadge | |
---|---|
Available from version master Replace the notifications mechanism for Minerva. For integration with notifications extensions e.g. Echo only. | |
Define function: | public static function onSkinMinervaReplaceNotificationsBadge( User $user, Title $currentTitle, string &$badge ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SkinMinervaReplaceNotificationsBadge": "MediaWiki\\Extension\\MyExtension\\Hooks::onSkinMinervaReplaceNotificationsBadge"
}
}
|
Called from: | File(s): |
Interface: | SkinMinervaReplaceNotificationsBadgeHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SkinMinervaReplaceNotificationsBadge extensions.