Manual:Hooks/GetBlockErrorMessageKey
From Linux Web Expert
GetBlockErrorMessageKey | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 832302)</tvar></translate> Allows extensions to override the message that will be displayed to the user. | |
<translate> Define function:</translate> | public static function onGetBlockErrorMessageKey( MediaWiki\Block\Block $block, string &$key ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"GetBlockErrorMessageKey": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetBlockErrorMessageKey"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> block/BlockFormatter.php <translate> Function(s):</translate> getBlockErrorMessageKey |
<translate> Interface:</translate> | GetBlockErrorMessageKeyHook.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:GetBlockErrorMessageKey extensions</tvar>.</translate>