Debian Codegraph @

extensions/AbuseFilter/includes/Hooks/AbuseFilterGenerateGenericVarsHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Extension\AbuseFilter\Hooks;
4
5 use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
6 use RecentChange;
7
8 interface AbuseFilterGenerateGenericVarsHook {
9 /**
10 * Hook runner for the `AbuseFilter-generateGenericVars` hook
11 *
12 * Allows altering generic variables, i.e. independent from page and user
13 *
14 * @param VariableHolder $vars
15 * @param ?RecentChange $rc If the variables should be generated for an RC entry,
16 * this is the entry. Null if it's for the current action being filtered.
17 * @return bool|void True or no return value to continue or false to abort
18 */
19 public function onAbuseFilter_generateGenericVars(
20 VariableHolder $vars,
21 ?RecentChange $rc
22 );
23 }