MediaWiki REL1_35
MediaWiki\Cache\Hook\MessageCache__getHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Cache\Hook\MessageCache__getHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 10 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

string&$keyMessage key
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: