Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageGroupConfiguration\MessageGroupTypeRegistry Class Reference

Registry of built-in symbolic message group type IDs. More...

Public Member Functions

 getSpec (string $type)
 Return the ObjectFactory-compatible construction specification for a type ID.
 
 getClass (string $type)
 Return the implementation class name for a type ID.
 

Detailed Description

Registry of built-in symbolic message group type IDs.

Maps stable type identifiers to ObjectFactory-compatible construction specifications. Does not create message groups.

Since
2026.09
Author
Siebrand Mazeland @license GPL-2.0-or-later

Definition at line 21 of file MessageGroupTypeRegistry.php.

Member Function Documentation

◆ getClass()

MediaWiki\Extension\Translate\MessageGroupConfiguration\MessageGroupTypeRegistry::getClass ( string $type)

Return the implementation class name for a type ID.

Parameters
string$typeRegistered type identifier.
Returns
string Fully-qualified class name.
Exceptions
InvalidGroupConfigurationExceptionif the type ID is not registered.

Definition at line 58 of file MessageGroupTypeRegistry.php.

◆ getSpec()

MediaWiki\Extension\Translate\MessageGroupConfiguration\MessageGroupTypeRegistry::getSpec ( string $type)

Return the ObjectFactory-compatible construction specification for a type ID.

Parameters
string$typeRegistered type identifier.
Returns
array Construction specification.
Exceptions
InvalidGroupConfigurationExceptionif the type ID is not registered.

Definition at line 44 of file MessageGroupTypeRegistry.php.


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