< Extension:AbuseFilter < Hooks
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
- $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.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.