MediaWiki REL1_39
MediaWiki\Cache\Hook\MessageCacheReplaceHook Interface Reference

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

Inheritance diagram for MediaWiki\Cache\Hook\MessageCacheReplaceHook:

Public Member Functions

 onMessageCacheReplace ( $title, $text)
 This hook is called when a message page is changed.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 12 of file MessageCacheReplaceHook.php.

Member Function Documentation

◆ onMessageCacheReplace()

MediaWiki\Cache\Hook\MessageCacheReplaceHook::onMessageCacheReplace ( $title,
$text )

This hook is called when a message page is changed.

Use this hook to update caches.

Since
1.35
Parameters
string$titleName of the page changed
string$textNew contents of the page
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: