Manual:Hooks/LocalisationChecksBlacklist
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.35</tvar>.</translate> |
LocalisationChecksBlacklist | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 94603)</tvar></translate> When fetching the blacklist of localisation checks. | |
<translate> Define function:</translate> | public static function onLocalisationChecksBlacklist( &$blacklist ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"LocalisationChecksBlacklist": "MediaWiki\\Extension\\MyExtension\\Hooks::onLocalisationChecksBlacklist"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> <translate> Function(s):</translate> getCheckBlacklist |
<translate> Interface:</translate> | LocalisationChecksBlacklistHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:LocalisationChecksBlacklist extensions</tvar>.</translate>
Details
- &$blacklist: array of checks to blacklist. See the bottom of checkLanguage.inc for the format of this variable.