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

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

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

Public Member Functions

 onTranslateEventMessageGroupStateChange (MessageGroup $group, string $code, $oldState, string $newState)
 Event triggered when a message group workflow state is changed in a language.
 

Detailed Description

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

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

@stable to implement

Definition at line 15 of file EventMessageGroupStateChangeHook.php.

Member Function Documentation

◆ onTranslateEventMessageGroupStateChange()

MediaWiki\Extension\Translate\MessageGroupProcessing\EventMessageGroupStateChangeHook::onTranslateEventMessageGroupStateChange ( MessageGroup $group,
string $code,
$oldState,
string $newState )

Event triggered when a message group workflow state is changed in a language.

Parameters
MessageGroup$groupMessage group instance
string$codeLanguage code
string | false$oldState
string$newState
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: