Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupProcessing\PostInitGroupsHook Interface Reference

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

Inheritance diagram for MediaWiki\Extension\Translate\MessageGroupProcessing\PostInitGroupsHook:
MediaWiki\Extension\Translate\HookRunner

Public Member Functions

 onTranslatePostInitGroups (array &$groups, array &$deps, array &$autoload)
 Hook to register new message groups to Translate.
 

Detailed Description

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

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

@stable to implement

Definition at line 15 of file PostInitGroupsHook.php.

Member Function Documentation

◆ onTranslatePostInitGroups()

MediaWiki\Extension\Translate\MessageGroupProcessing\PostInitGroupsHook::onTranslatePostInitGroups ( array & $groups,
array & $deps,
array & $autoload )

Hook to register new message groups to Translate.

Manual cache clear may be needed to have this hook executed.

Parameters
MessageGroup[]&$groupsMap of message group id to message group instance
array&$depsList of dependencies as supported by DependencyWrapper class from MediaWiki
string[]&$autoloadList of autoloaded classes. Key is the name of the class and value is filename
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: