|
MediaWiki master
|
Middleware that allows to filter notifications. More...
Inherits MediaWiki\Notification\NotificationMiddlewareInterface.
Inherited by MediaWiki\Notification\Middleware\SuppressNotificationByTypeMiddleware.

Public Member Functions | |
| handle (NotificationsBatch $batch, callable $next) | |
Protected Member Functions | |
| filter (NotificationEnvelope $envelope) | |
| Decide whether we want to remove notification from the list. | |
Middleware that allows to filter notifications.
Definition at line 15 of file FilterMiddleware.php.
|
abstractprotected |
Decide whether we want to remove notification from the list.
Return FilterMiddlewareAction::KEEP to keep the envelope Return FilterMiddlewareAction::REMOVE to remove the envelope
Reimplemented in MediaWiki\Notification\Middleware\SuppressNotificationByTypeMiddleware.
Referenced by MediaWiki\Notification\Middleware\FilterMiddleware\handle().
| MediaWiki\Notification\Middleware\FilterMiddleware::handle | ( | NotificationsBatch | $batch, |
| callable | $next ) |
| NotificationsBatch | $batch | |
| callable():void | $next |
Implements MediaWiki\Notification\NotificationMiddlewareInterface.
Definition at line 29 of file FilterMiddleware.php.
References MediaWiki\Notification\Middleware\FilterMiddleware\filter().