mediawiki-extensions-AbuseF.../includes/Hooks/AbuseFilterGetDangerousActionsHook.php
Umherirrender b849e5daea Move documentation from hooks.txt to hook interfaces
The new system allows to have documentation directly at the interfaces

Change-Id: I3e8afb3605dea80db95e314b3dd42087e9bc1b06
2021-03-31 21:50:30 +02:00

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