Page MenuHomeWickedGov Phorge

AbuseFilterCustomProtectedVariablesHook.php
No OneTemporary

Size
927 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.
*
* The values of protected variables are purged after $wgAbuseFilterLogProtectedVariablesMaxAge seconds.
* If the config is set to 0, then the protected variables are never purged.
*
* @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
Oct 9 2026, 17:49 (7 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
54/f4/d9e981ccf07dbb62fe78fcb43e66
Default Alt Text
AbuseFilterCustomProtectedVariablesHook.php (927 B)

Event Timeline