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