MediaWiki master
MediaWiki\Notification\NotificationMiddlewareInterface Interface Reference

Inherited by MediaWiki\Notification\Middleware\FilterMiddleware.

Public Member Functions

 handle (NotificationsBatch $batch, callable $next)
 Allows performing operations on batch, Should return modified batch.
 

Detailed Description

Stability: stable
to implement
Since
1.45

Definition at line 8 of file NotificationMiddlewareInterface.php.

Member Function Documentation

◆ handle()

MediaWiki\Notification\NotificationMiddlewareInterface::handle ( NotificationsBatch $batch,
callable $next )

Allows performing operations on batch, Should return modified batch.

Parameters
NotificationsBatch$batch
callable():void$next Call this method to continue the chain

Implemented in MediaWiki\Notification\Middleware\FilterMiddleware.


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