MediaWiki  master
ResourceLoader\Hook\ResourceLoaderForeignApiModulesHook Interface Reference

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

Inheritance diagram for ResourceLoader\Hook\ResourceLoaderForeignApiModulesHook:

Public Member Functions

 onResourceLoaderForeignApiModules (&$dependencies, $context)
 Add dependencies to the mediawiki.ForeignApi module when you wish to override its behavior. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file ResourceLoaderForeignApiModulesHook.php.

Member Function Documentation

◆ onResourceLoaderForeignApiModules()

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
ResourceLoaderContext | null$context
Returns
void This hook must not abort, it must return no value

Implemented in ResourceLoader\HookRunner.


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