This is a hook handler interface, see docs/Hooks.md in core. More...
Public Member Functions | |
onTranslatePostInitGroups (array &$groups, array &$deps, array &$autoload) | |
Hook to register new message groups to Translate. | |
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.
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.
MessageGroup[] | &$groups | Map of message group id to message group instance |
array | &$deps | List of dependencies as supported by DependencyWrapper class from MediaWiki |
string[] | &$autoload | List of autoloaded classes. Key is the name of the class and value is filename |
Implemented in MediaWiki\Extension\Translate\HookRunner.