2020-03-03 22:50:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
|
|
2020-03-16 23:31:05 +00:00
|
|
|
use ResourceLoaderContext;
|
|
|
|
|
|
2020-03-03 22:50:34 +00:00
|
|
|
/**
|
|
|
|
|
* @stable for implementation
|
|
|
|
|
* @ingroup Hooks
|
|
|
|
|
*/
|
|
|
|
|
interface ResourceLoaderJqueryMsgModuleMagicWordsHook {
|
|
|
|
|
/**
|
2020-03-16 23:31:05 +00:00
|
|
|
* This hook is called in ResourceLoaderJqueryMsgModule to allow
|
|
|
|
|
* adding magic words for jQueryMsg. The value should be a string,
|
|
|
|
|
* and they can depend only on the ResourceLoaderContext.
|
2020-03-03 22:50:34 +00:00
|
|
|
*
|
|
|
|
|
* @since 1.35
|
|
|
|
|
*
|
2020-03-16 23:31:05 +00:00
|
|
|
* @param ResourceLoaderContext $context
|
2020-04-20 06:03:16 +00:00
|
|
|
* @param string[] &$magicWords Associative array mapping all-caps magic word to a string value
|
2020-03-03 22:50:34 +00:00
|
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
|
|
|
*/
|
|
|
|
|
public function onResourceLoaderJqueryMsgModuleMagicWords( $context,
|
|
|
|
|
&$magicWords
|
|
|
|
|
);
|
|
|
|
|
}
|