mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-19 17:10:58 +00:00
3914c913e3
They are unused in Wikimedia code (finally). Change-Id: I74c81d950d992552d3edf184b5eecc46e5e2c567 Depends-On: I62533e21d2bc1a22c3fcba4c7c650ca9d95700ef Depends-On: I95ce9897d89213e358c436135278b729f0adc3a2
27 lines
825 B
PHP
27 lines
825 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
|
|
|
use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
|
|
use Title;
|
|
|
|
interface AbuseFilterFilterActionHook {
|
|
/**
|
|
* Hook runner for the `AbuseFilter-filterAction` hook
|
|
*
|
|
* DEPRECATED! Use AbuseFilterAlterVariables instead.
|
|
*
|
|
* Allows overwriting of abusefilter variables in FilterRunner::init just before they're
|
|
* checked against filters. Note that you may specify custom variables in a saner way using other hooks:
|
|
* AbuseFilter-generateTitleVars, AbuseFilter-generateUserVars and AbuseFilter-generateGenericVars.
|
|
*
|
|
* @param VariableHolder &$vars
|
|
* @param Title $title
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onAbuseFilter_filterAction(
|
|
VariableHolder &$vars,
|
|
Title $title
|
|
);
|
|
}
|