Debian Codegraph @

includes/ResourceLoader/Hook/ResourceLoaderJqueryMsgModuleMagicWordsHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\ResourceLoader\Hook;
4
5 use MediaWiki\ResourceLoader\Context;
6
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ResourceLoaderJqueryMsgModuleMagicWords" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup ResourceLoaderHooks
13 */
14 interface ResourceLoaderJqueryMsgModuleMagicWordsHook {
15 /**
16 * Add magic words to the `mediawiki.jqueryMsg` module. The values should be a string,
17 * and they may only vary by what's in the Context.
18 *
19 * This hook is called from ResourceLoaderJqueryMsgModule.
20 *
21 * @since 1.35
22 * @param Context $context
23 * @param string[] &$magicWords Associative array mapping all-caps magic word to a string value
24 * @return void This hook must not abort, it must return no value
25 */
26 public function onResourceLoaderJqueryMsgModuleMagicWords(
27 Context $context,
28 array &$magicWords
29 ): void;
30 }