MediaWiki REL1_35
MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook:

Public Member Functions

 onResourceLoaderJqueryMsgModuleMagicWords (ResourceLoaderContext $context, array &$magicWords)
 Add magic words to the mediawiki.jqueryMsg module.
 

Detailed Description

Stable to implement.

Definition at line 11 of file ResourceLoaderJqueryMsgModuleMagicWordsHook.php.

Member Function Documentation

◆ onResourceLoaderJqueryMsgModuleMagicWords()

MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook::onResourceLoaderJqueryMsgModuleMagicWords ( ResourceLoaderContext  $context,
array &  $magicWords 
)

Add magic words to the mediawiki.jqueryMsg module.

The values should be a string, and they may only vary by what's in the ResourceLoaderContext.

This hook is called from ResourceLoaderJqueryMsgModule.

Since
1.35
Parameters
ResourceLoaderContext$context
string[]&$magicWordsAssociative array mapping all-caps magic word to a string value
Returns
void This hook must not abort, it must return no value

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: