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\Variables\VariableHolder; |
6 | use MediaWiki\User\User; |
7 | use RecentChange; |
8 | |
9 | interface AbuseFilterGenerateUserVarsHook { |
10 | /** |
11 | * Hook runner for the `AbuseFilter-generateUserVars` hook |
12 | * |
13 | * Allows altering the variables generated for a specific user |
14 | * |
15 | * @param VariableHolder $vars |
16 | * @param User $user |
17 | * @param ?RecentChange $rc If the variables should be generated for an RC entry, |
18 | * this is the entry. Null if it's for the current action being filtered. |
19 | * @return bool|void True or no return value to continue or false to abort |
20 | */ |
21 | public function onAbuseFilter_generateUserVars( |
22 | VariableHolder $vars, |
23 | User $user, |
24 | ?RecentChange $rc |
25 | ); |
26 | } |