Debian Codegraph @

includes/cache/Hook/MessageCache__getHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Cache\Hook;
4
5 // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6 /**
7 * This is a hook handler interface, see docs/Hooks.md.
8 * Use the hook name "MessageCache::get" to register handlers implementing this interface.
9 *
10 * @deprecated since 1.41 Use MessageCacheFetchOverrides instead
11 * @ingroup Hooks
12 */
13 interface MessageCache__getHook {
14 /**
15 * This hook is called when fetching a message. Use this hook to override the key
16 * for customisations. Given and returned message key must be formatted with:
17 * 1) the first letter in lower case according to the content language
18 * 2) spaces replaced with underscores
19 *
20 * @since 1.35
21 *
22 * @param string &$key Message key
23 * @return bool|void True or no return value to continue or false to abort
24 */
25 public function onMessageCache__get( &$key );
26 }