Debian Codegraph @

extensions/AbuseFilter/includes/Hooks/AbuseFilterInterceptVariableHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Extension\AbuseFilter\Hooks;
4
5 use MediaWiki\Extension\AbuseFilter\Variables\VariableHolder;
6
7 interface AbuseFilterInterceptVariableHook {
8 /**
9 * Hook runner for the `AbuseFilter-interceptVariable` hook
10 *
11 * Called before a lazy-loaded variable is computed to be able to set
12 * it before the core code runs. Return false to make the function return right after.
13 *
14 * @param string $method Method to generate the variable
15 * @param VariableHolder $vars
16 * @param array $parameters Parameters with data to compute the value
17 * @param mixed &$result Result of the computation
18 * @return bool|void True or no return value to continue or false to abort
19 */
20 public function onAbuseFilter_interceptVariable(
21 string $method,
22 VariableHolder $vars,
23 array $parameters,
24 &$result
25 );
26 }