MediaWiki  master
MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook Interface Reference

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

Inheritance diagram for MediaWiki\ResourceLoader\Hook\ResourceLoaderJqueryMsgModuleMagicWordsHook:

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/

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.

string[]&$magicWordsAssociative array mapping all-caps magic word to a string value
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: