diff options
Diffstat (limited to 'AbuseFilter/includes/Hooks/AbuseFilterBuilderHook.php')
-rw-r--r-- | AbuseFilter/includes/Hooks/AbuseFilterBuilderHook.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/AbuseFilter/includes/Hooks/AbuseFilterBuilderHook.php b/AbuseFilter/includes/Hooks/AbuseFilterBuilderHook.php new file mode 100644 index 00000000..0354709b --- /dev/null +++ b/AbuseFilter/includes/Hooks/AbuseFilterBuilderHook.php @@ -0,0 +1,15 @@ +<?php + +namespace MediaWiki\Extension\AbuseFilter\Hooks; + +interface AbuseFilterBuilderHook { + /** + * Hook runner for the `AbuseFilter-builder` hook + * + * Allows overwriting of the builder values returned by AbuseFilter::getBuilderValues + * + * @param array &$realValues Builder values + * @return bool|void True or no return value to continue or false to abort + */ + public function onAbuseFilterBuilder( array &$realValues ); +} |