Manual:Hooks/LoadAllMessages
Appearance
This feature was removed completely in version 1.16.0. |
LoadAllMessages | |
---|---|
Available from version 1.8.0 Removed in version 1.16.0 Called when $wgMessageCache->loadAllMessages() has been invoked, allows extensions to inject their own messages. | |
Define function: | public static function onLoadAllMessages( ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"LoadAllMessages": "MediaWiki\\Extension\\MyExtension\\Hooks::onLoadAllMessages"
}
}
|
Called from: | File(s): cache/MessageCache.php |
Interface: | LoadAllMessagesHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:LoadAllMessages extensions.
Details
[edit]Called when $wgMessageCache ->loadAllMessages()
has been invoked, allows extensions to inject their own messages.