mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-01 00:56:26 +00:00
22 lines
785 B
PHP
22 lines
785 B
PHP
|
<?php
|
||
|
|
||
|
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
||
|
|
||
|
// phpcs:ignore MediaWiki.Classes.UnusedUseStatement.UnusedUse
|
||
|
use MediaWiki\Extension\AbuseFilter\Consequence\Consequence;
|
||
|
// phpcs:ignore MediaWiki.Classes.UnusedUseStatement.UnusedUse
|
||
|
use MediaWiki\Extension\AbuseFilter\Consequence\Parameters;
|
||
|
|
||
|
interface AbuseFilterCustomActionsHook {
|
||
|
/**
|
||
|
* Hook runner for the `AbuseFilterCustomActions` hook
|
||
|
*
|
||
|
* Allows specifying custom actions. Callers should append to $actions, using the action name as (string) key,
|
||
|
* and the value should be a callable with the signature documented below.
|
||
|
*
|
||
|
* @param callable[] &$actions
|
||
|
* @phan-param array<string,callable(Parameters,array):Consequence> &$actions
|
||
|
*/
|
||
|
public function onAbuseFilterCustomActions( array &$actions );
|
||
|
}
|