MediaWiki master
MediaWiki\ResourceLoader\Hook\ResourceLoaderForeignApiModulesHook Interface Reference

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.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file ResourceLoaderForeignApiModulesHook.php.

Member Function Documentation

◆ onResourceLoaderForeignApiModules()

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.

Since
1.35
Parameters
string[]&$dependenciesList of modules that mediawiki.ForeignApi should depend on
Context | null$context
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: