Extension:AbuseFilter/Hooks/AbuseFilterGenerateVarsForRecentChange
Appearance
AbuseFilterGenerateVarsForRecentChange | |
---|---|
Available from version ??? Hook that allows extensions to generate variables from a RecentChange row with a non-standard model. |
|
Define function: | public static function onAbuseFilterGenerateVarsForRecentChange(
MediaWiki\Extension\AbuseFilter\VariableGenerator\RCVariableGenerator $generator,
RecentChange $rc,
MediaWiki\Extension\AbuseFilter\Variables\VariableHolder $vars,
User $contextUser
) { ... }
|
Attach hook: | $wgHooks['AbuseFilterGenerateVarsForRecentChange'][] = 'MyExtensionHooks::onAbuseFilterGenerateVarsForRecentChange';
|
Called from: | File(s): AbuseFilter / |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilterGenerateVarsForRecentChange extensions.
The hooks `AbuseFilterGenerate(Title|User|Generic)Hook` should be used for computing single variables in standard RC rows.