Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\AbuseFilter\Hooks; |
| 4 | |
| 5 | use MediaWiki\Extension\AbuseFilter\Consequences\Consequence\Consequence; |
| 6 | use MediaWiki\Extension\AbuseFilter\Consequences\Parameters; |
| 7 | |
| 8 | interface AbuseFilterCustomActionsHook { |
| 9 | /** |
| 10 | * Hook runner for the `AbuseFilterCustomActions` hook |
| 11 | * |
| 12 | * Allows specifying custom actions. Callers should append to $actions, using the action name as (string) key, |
| 13 | * and the value should be a callable with the signature documented below. |
| 14 | * |
| 15 | * @param array<string,callable(Parameters,array):Consequence> &$actions |
| 16 | */ |
| 17 | public function onAbuseFilterCustomActions( array &$actions ); |
| 18 | } |