Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler Class Reference

Hook handler to handle user subscriptions to message groups. More...

Inheritance diagram for MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler:

Public Member Functions

 __construct (MessageGroupSubscription $messageGroupSubscription, UserFactory $userFactory)
 
 onBeforeCreateEchoEvent (array &$notifications, array &$notificationCategories, array &$notificationIcons)
 
 onEchoGetBundleRules (Event $event, string &$bundleKey)
 Notifications for subscriptions are bundled by message group.
 

Static Public Member Functions

static registerHooks (array &$hooks)
 

Detailed Description

Hook handler to handle user subscriptions to message groups.

Since
2024.04 @license GPL-2.0-or-later
Author
Abijeet Patro

Definition at line 19 of file MessageGroupSubscriptionHookHandler.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler::__construct ( MessageGroupSubscription $messageGroupSubscription,
UserFactory $userFactory )

Definition at line 24 of file MessageGroupSubscriptionHookHandler.php.

Member Function Documentation

◆ onBeforeCreateEchoEvent()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler::onBeforeCreateEchoEvent ( array & $notifications,
array & $notificationCategories,
array & $notificationIcons )

Definition at line 53 of file MessageGroupSubscriptionHookHandler.php.

◆ onEchoGetBundleRules()

MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler::onEchoGetBundleRules ( Event $event,
string & $bundleKey )

Notifications for subscriptions are bundled by message group.

Definition at line 94 of file MessageGroupSubscriptionHookHandler.php.

◆ registerHooks()

static MediaWiki\Extension\Translate\MessageGroupProcessing\MessageGroupSubscriptionHookHandler::registerHooks ( array & $hooks)
static

Definition at line 32 of file MessageGroupSubscriptionHookHandler.php.


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