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