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

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

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

Public Member Functions

 onTranslate_modifyMessageGroupStates (string $groupId, array &$conf)
 Allow hooks to change workflow states depending on the group's ID.
 

Detailed Description

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

Use the hook name "Translate:modifyMessageGroupStates" to register handlers implementing this interface.

@stable to implement

Definition at line 15 of file ModifyMessageGroupStatesHook.php.

Member Function Documentation

◆ onTranslate_modifyMessageGroupStates()

MediaWiki\Extension\Translate\MessageGroupProcessing\ModifyMessageGroupStatesHook::onTranslate_modifyMessageGroupStates ( string $groupId,
array & $conf )

Allow hooks to change workflow states depending on the group's ID.

Parameters
string$groupIdID of the current message group
array&$confWorkflow states, can be modified
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: