Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\TranslatorInterface\BeforeAddModulesHook Interface Reference

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

Inheritance diagram for MediaWiki\Extension\Translate\TranslatorInterface\BeforeAddModulesHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslateBeforeAddModules (array &$modules)
 Provides an opportunity to load extra modules.
 

Detailed Description

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

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

@stable to implement

Definition at line 13 of file BeforeAddModulesHook.php.

Member Function Documentation

◆ onTranslateBeforeAddModules()

MediaWiki\Extension\Translate\TranslatorInterface\BeforeAddModulesHook::onTranslateBeforeAddModules ( array & $modules)

Provides an opportunity to load extra modules.

Parameters
string[]&$modulesList of resource loader module names
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Extension\Translate\HookRunner.


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