MediaWiki master
MediaWiki\Cache\Hook\MessageCache__getHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onMessageCache__get (&$key)
 This hook is called when fetching a message.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "MessageCache::get" to register handlers implementing this interface.

Deprecated
since 1.41 Use MessageCacheFetchOverrides instead

Definition at line 13 of file MessageCache__getHook.php.

Member Function Documentation

◆ onMessageCache__get()

MediaWiki\Cache\Hook\MessageCache__getHook::onMessageCache__get ( & $key)

This hook is called when fetching a message.

Use this hook to override the key for customisations. Given and returned message key must be formatted with: 1) the first letter in lower case according to the content language 2) spaces replaced with underscores

Since
1.35
Parameters
string&$keyMessage key
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: