Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6215400
MessageCacheFetchOverridesHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
MessageCacheFetchOverridesHook.php
View Options
<?php
namespace
MediaWiki\Cache\Hook
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "MessageCacheFetchOverrides" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
MessageCacheFetchOverridesHook
{
/**
* This hook is called to fetch overrides. Use this hook to override message keys
* for customisations. Returned messages key must be formatted with:
* 1) the first letter in lower case according to the content language
* 2) spaces replaced with underscores
*
* @since 1.41
*
* @param (string|callable)[] &$keys Message keys mapped to their override. Values may also be a
* callable that returns a message key. Callables are passed the message key,
* the MessageCache instance, a Language/StubUserLang object and a boolean indicating if the
* value should be fetched from the database. Note that strings will always be interpreted as
* a message key; this is not valid callable syntax! This prevents ambiguity between message keys and functions.
* Use Closure::fromCallable or another valid callable syntax.
*/
public
function
onMessageCacheFetchOverrides
(
array
&
$keys
):
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 10 2026, 12:20 (7 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d0/12/a6c64c175d205f43fbc8b33ec423
Default Alt Text
MessageCacheFetchOverridesHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment