|
MediaWiki master
|
An example Middleware that allows to remove notifications of specific types. More...
Inherits MediaWiki\Notification\Middleware\FilterMiddleware.

Public Member Functions | |
| __construct (string $notificationTypeToSuppress) | |
| Suppress sending specific notification. | |
Public Member Functions inherited from MediaWiki\Notification\Middleware\FilterMiddleware | |
| handle (NotificationsBatch $batch, callable $next) | |
Protected Member Functions | |
| filter (NotificationEnvelope $envelope) | |
| Decide whether we want to remove notification from the list. | |
An example Middleware that allows to remove notifications of specific types.
Definition at line 12 of file SuppressNotificationByTypeMiddleware.php.
| MediaWiki\Notification\Middleware\SuppressNotificationByTypeMiddleware::__construct | ( | string | $notificationTypeToSuppress | ) |
Suppress sending specific notification.
Definition at line 19 of file SuppressNotificationByTypeMiddleware.php.
|
protected |
Decide whether we want to remove notification from the list.
Reimplemented from MediaWiki\Notification\Middleware\FilterMiddleware.
Definition at line 26 of file SuppressNotificationByTypeMiddleware.php.