MediaWiki REL1_39
|
A service class for getting formatted information about a block. More...
Public Member Functions | |
__construct (TitleFormatter $titleFormatter) | |
getMessage (Block $block, UserIdentity $user, Language $language, $ip) | |
Get a block error message. | |
A service class for getting formatted information about a block.
To obtain an instance, use MediaWikiServices::getInstance()->getBlockErrorFormatter().
Definition at line 36 of file BlockErrorFormatter.php.
MediaWiki\Block\BlockErrorFormatter::__construct | ( | TitleFormatter | $titleFormatter | ) |
TitleFormatter | $titleFormatter |
Definition at line 44 of file BlockErrorFormatter.php.
MediaWiki\Block\BlockErrorFormatter::getMessage | ( | Block | $block, |
UserIdentity | $user, | ||
Language | $language, | ||
$ip ) |
Get a block error message.
Different message keys are chosen depending on the block features. Message parameters are formatted for the specified user and language.
Block | $block | |
UserIdentity | $user | |
Language | $language | |
string | $ip |
Definition at line 61 of file BlockErrorFormatter.php.