Page MenuHomeWickedGov Phorge

AbuseFilterCustomProtectedVariablesHook.php
No OneTemporary

Size
739 B
Referenced Files
None
Subscribers
None

AbuseFilterCustomProtectedVariablesHook.php

<?php
namespace MediaWiki\Extension\AbuseFilter\Hooks;
interface AbuseFilterCustomProtectedVariablesHook {
/**
* Allows other extensions to define variables as protected variables. This has the effect of
* adding the variable to the $wgAbuseFilterProtectedVariables configuration value. A protected
* variable can only be used in a protected filter, which is not publicly accessible.
*
* Using this hook has the advantage of enforcing that the variable is always protected, even if
* it is removed from $wgAbuseFilterProtectedVariables.
*
* @since 1.44
* @param string[] &$variables The variables which should be protected variables.
*/
public function onAbuseFilterCustomProtectedVariables( array &$variables );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 17 2026, 21:08 (9 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
28/26/1b7966428eed31c224e359ff4e64
Default Alt Text
AbuseFilterCustomProtectedVariablesHook.php (739 B)

Event Timeline