Extension:AbuseFilter/Hooks/AbuseFilter-generateTitleVars

From mediawiki.org
Jump to navigation Jump to search
AbuseFilter-generateTitleVars
Available from version 1.21.0 (Gerrit change 39781)
Allows altering the variables generated for a title
Define function:
public static function onAbuseFilter_generateTitleVars( $vars, $title, $prefix, $rc ) { ... }
Attach hook:
$wgHooks['AbuseFilter-generateTitleVars'][] = 'MyExtensionHooks::onAbuseFilter_generateTitleVars';
Called from:File(s): AbuseFilter / includes/VariableGenerator/VariableGenerator.php
Function(s): addTitleVars

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilter-generateTitleVars extensions.

Details[edit]

  • $vars: AbuseFilterVariableHolder
  • $title: Title object
  • $prefix: Variable name prefix
  • $rc: RCDatabaseLogEntry|null If the variables should be generated for an RC entry, this is the entry. Null if it's for the current action being filtered.