Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MessageGroupLoader Interface Reference

Interface for message group loaders. More...

Inheritance diagram for MessageGroupLoader:
MediaWiki\Extension\Translate\MessageGroupProcessing\CachedMessageGroupFactoryLoader WorkflowStatesMessageGroupLoader

Public Member Functions

 getGroups ()
 Fetches and returns an array of MessageGroups.
 

Detailed Description

Interface for message group loaders.

Since
2024.06
Author
Abijeet Patro @license GPL-2.0-or-later

Definition at line 10 of file MessageGroupLoader.php.

Member Function Documentation

◆ getGroups()

MessageGroupLoader::getGroups ( )

Fetches and returns an array of MessageGroups.

Returns
MessageGroup[] Array of message groups with group id as the key
Note
Do not return an indexed based array as that would cause MessageGroups to be overwritten.

Implemented in WorkflowStatesMessageGroupLoader, and MediaWiki\Extension\Translate\MessageGroupProcessing\CachedMessageGroupFactoryLoader.


The documentation for this interface was generated from the following file: