12use MediaWiki\Context\IContextSource;
16use MediaWiki\Linker\LinkTarget;
42 public function getLabel( ?IContextSource $context =
null );
Interface for message groups.
getDescription(?IContextSource $context=null)
Returns a longer description about the group.
getMangler()
Return a message mangler or null.
getTranslatableLanguages()
Get all the translatable languages for a group, considering the inclusion and exclusion list.
initCollection( $code)
Initialises a message collection with the given language code, message definitions and message tags.
getIcon()
Returns an icon for this message group if any.
exists()
If this function returns false, the message group is ignored and treated like it would not be configu...
getTags( $type=null)
Returns message tags.
getRelatedPage()
Returns the page where the messages in the group are defined.
getNamespace()
Returns the namespace where messages are placed.
getSourceLanguage()
Returns language code depicting the language of source text.
getId()
Returns the unique identifier for this group.
getKeys()
Shortcut for array_keys( getDefinitions() ) that can be optimized by the implementing classes.
load( $code)
Returns a list of messages in a given language code.
getMessage( $key, $code)
Returns the definition or translation for given message key in given language code.
getValidator()
Returns a message validator object or null.
getSupportConfig()
Gets support URL defined for the group if any.
getDefinitions()
Shortcut for load( getSourceLanguage() ).
getLabel(?IContextSource $context=null)
Returns the human readable label (as plain text).
getMessageGroupStates()
Get the message group workflow state configuration.