MediaWiki
master
|
The MediaWiki-specific implementation of ITextFormatter. More...
Public Member Functions | |
__construct (string $langCode, Converter $converter, string $format=Message::FORMAT_TEXT) | |
Construct a TextFormatter. More... | |
format (MessageValue $mv) | |
getLangCode () | |
Get the internal language code in which format() is. More... | |
![]() | |
format (MessageValue $message) | |
Convert a MessageValue to text. More... | |
The MediaWiki-specific implementation of ITextFormatter.
Definition at line 12 of file TextFormatter.php.
Message\TextFormatter::__construct | ( | string | $langCode, |
Converter | $converter, | ||
string | $format = Message::FORMAT_TEXT |
||
) |
Construct a TextFormatter.
The type signature may change without notice as dependencies are added to the constructor. External callers should use MediaWikiServices::getMessageFormatterFactory()
string | $langCode | |
Converter | $converter | |
string | $format |
Definition at line 34 of file TextFormatter.php.
References Message\TextFormatter\format().
Message\TextFormatter::format | ( | MessageValue | $mv | ) |
Definition at line 48 of file TextFormatter.php.
References Message\$message.
Referenced by Message\TextFormatter\__construct().
Message\TextFormatter::getLangCode | ( | ) |
Get the internal language code in which format() is.
Implements Wikimedia\Message\ITextFormatter.
Definition at line 44 of file TextFormatter.php.