2023-06-06 21:02:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MediaWiki\Extension\Notifications\Hooks;
|
|
|
|
|
|
|
|
use MediaWiki\Extension\Notifications\Model\Event;
|
2023-12-11 15:33:08 +00:00
|
|
|
use MediaWiki\User\User;
|
2023-06-06 21:02:02 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is a hook handler interface, see docs/Hooks.md in core.
|
|
|
|
* Use the hook name "EchoGetNotificationTypes" to register handlers implementing this interface.
|
|
|
|
*
|
|
|
|
* @stable to implement
|
|
|
|
* @ingroup Hooks
|
|
|
|
*/
|
|
|
|
interface EchoGetNotificationTypesHook {
|
|
|
|
/**
|
|
|
|
* @param User $user
|
|
|
|
* @param Event $event
|
|
|
|
* @param string[] &$userNotifyTypes
|
|
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
|
|
*/
|
|
|
|
public function onEchoGetNotificationTypes( User $user, Event $event, array &$userNotifyTypes );
|
|
|
|
}
|