mediawiki-extensions-AbuseF.../includes/Hooks/AbuseFilterFilterActionHook.php
Matěj Suchánek 3914c913e3 Remove deprecated static methods
They are unused in Wikimedia code (finally).

Change-Id: I74c81d950d992552d3edf184b5eecc46e5e2c567
Depends-On: I62533e21d2bc1a22c3fcba4c7c650ca9d95700ef
Depends-On: I95ce9897d89213e358c436135278b729f0adc3a2
2022-07-27 13:01:10 +02:00

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
);
}