MediaWiki master
MediaWiki\Cache\Hook\MessagesPreLoadHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onMessagesPreLoad ( $title, &$message, $code)
 This hook is called when loading a message from the database.
 

Detailed Description

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

Use the hook name "MessagesPreLoad" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file MessagesPreLoadHook.php.

Member Function Documentation

◆ onMessagesPreLoad()

MediaWiki\Cache\Hook\MessagesPreLoadHook::onMessagesPreLoad ( $title,
& $message,
$code )

This hook is called when loading a message from the database.

Since
1.35
Parameters
string$titleTitle of the message
string&$messageMessage you want to define
string$codeLanguage code
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: