Extension:AbuseFilter/Hooks/AbuseFilterGenerateVarsForRecentChange

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.