mediawiki-extensions-AbuseF.../includes/Hooks/AbuseFilterCustomActionsHook.php
Daimona Eaytoy b394956c22 Create a dedicated namespace for all consequences-related classes
Change-Id: Ibc39593e34da36e57b640af0b5bbf2145f725e92
2020-12-18 19:27:33 +00:00

22 lines
799 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter\Hooks;
// phpcs:ignore MediaWiki.Classes.UnusedUseStatement.UnusedUse
use MediaWiki\Extension\AbuseFilter\Consequences\Consequence\Consequence;
// phpcs:ignore MediaWiki.Classes.UnusedUseStatement.UnusedUse
use MediaWiki\Extension\AbuseFilter\Consequences\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 );
}