| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\Notifications\Hooks; |
| 4 | |
| 5 | /** |
| 6 | * This is a hook handler interface, see docs/Hooks.md in core. |
| 7 | * Use the hook name "BeforeCreateEchoEvent" to register handlers implementing this interface. |
| 8 | * |
| 9 | * @stable to implement |
| 10 | * @ingroup Hooks |
| 11 | */ |
| 12 | interface BeforeCreateEchoEventHook { |
| 13 | /** |
| 14 | * Called on setup of Echo extension |
| 15 | * |
| 16 | * @param array &$notifications To expand $wgEchoNnotifications |
| 17 | * @param array &$notificationCategories To expand $wgEchoNotificationCategories |
| 18 | * @param array &$notificationIcons To expand $wgEchoNotificationIcons |
| 19 | * @return bool|void True or no return value to continue or false to abort |
| 20 | */ |
| 21 | public function onBeforeCreateEchoEvent( |
| 22 | array &$notifications, |
| 23 | array &$notificationCategories, |
| 24 | array &$notificationIcons |
| 25 | ); |
| 26 | } |