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

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

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

Public Member Functions

 onTranslateEventMessageMembershipChange (MessageHandle $handle, array $old, array $new)
 When group gets new messages or loses messages.
 

Detailed Description

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

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

@stable to implement

Definition at line 15 of file EventMessageMembershipChangeHook.php.

Member Function Documentation

◆ onTranslateEventMessageMembershipChange()

MediaWiki\Extension\Translate\MessageGroupProcessing\EventMessageMembershipChangeHook::onTranslateEventMessageMembershipChange ( MessageHandle $handle,
array $old,
array $new )

When group gets new messages or loses messages.

Parameters
MessageHandle$handle
string[]$oldPrevious groups
string[]$newCurrent groups
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: