mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 18:19:38 +00:00
b849e5daea
The new system allows to have documentation directly at the interfaces Change-Id: I3e8afb3605dea80db95e314b3dd42087e9bc1b06
16 lines
424 B
PHP
16 lines
424 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\Hooks;
|
|
|
|
interface AbuseFilterGetDangerousActionsHook {
|
|
/**
|
|
* Hook runner for the `AbuseFilterGetDangerousActions` hook
|
|
*
|
|
* Allows specifying custom consequences which can harm the user and prevent
|
|
* the edit from being saved.
|
|
*
|
|
* @param string[] &$actions The dangerous actions
|
|
*/
|
|
public function onAbuseFilterGetDangerousActions( array &$actions ) : void;
|
|
}
|