mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 18:19:38 +00:00
16 lines
402 B
PHP
16 lines
402 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
|
||
|
*/
|
||
|
public function onAbuseFilterGetDangerousActions( array &$actions ) : void;
|
||
|
}
|