MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\ResourceLoader\HookRunner.
Public Member Functions | |
onResourceLoaderForeignApiModules (&$dependencies, $context) | |
Add dependencies to the mediawiki.ForeignApi module when you wish to override its behavior. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ResourceLoaderForeignApiModules" to register handlers implementing this interface.
Definition at line 14 of file ResourceLoaderForeignApiModulesHook.php.
MediaWiki\ResourceLoader\Hook\ResourceLoaderForeignApiModulesHook::onResourceLoaderForeignApiModules | ( | & | $dependencies, |
$context ) |
Add dependencies to the mediawiki.ForeignApi
module when you wish to override its behavior.
See the JS docs for more information.
This hook is called from ResourceLoaderForeignApiModule.
string[] | &$dependencies | List of modules that mediawiki.ForeignApi should depend on |
Context | null | $context |
Implemented in MediaWiki\ResourceLoader\HookRunner.