MediaWiki master
MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\ResourceLoader\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ResourceLoaderJqueryMsgModuleMagicWords" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file ResourceLoaderJqueryMsgModuleMagicWordsHook.php.

Member Function Documentation

◆ onResourceLoaderJqueryMsgModuleMagicWords()

MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook::onResourceLoaderJqueryMsgModuleMagicWords ( Context $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 Context.

This hook is called from ResourceLoaderJqueryMsgModule.

Since
1.35
Parameters
Context$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\ResourceLoader\HookRunner.


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