Debian Codegraph @

extensions/AbuseFilter/includes/Hooks/AbuseFilterDeprecatedVariablesHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Extension\AbuseFilter\Hooks;
4
5 interface AbuseFilterDeprecatedVariablesHook {
6 /**
7 * Hook runner for the `AbuseFilter-deprecatedVariables` hook
8 *
9 * Allows adding deprecated variables. If a filter uses an old variable, the parser
10 * will automatically translate it to the new one.
11 *
12 * @param array &$deprecatedVariables deprecated variables, syntax: [ 'old_name' => 'new_name' ]
13 * @return bool|void True or no return value to continue or false to abort
14 */
15 public function onAbuseFilter_deprecatedVariables( array &$deprecatedVariables );
16 }