MediaWiki
master
|
A service class for getting formatted information about a block. More...
Public Member Functions | |
__construct (TitleFormatter $titleFormatter, HookContainer $hookContainer, UserIdentityUtils $userIdentityUtils) | |
getMessage (Block $block, UserIdentity $user, Language $language, $ip) | |
Get a block error message. More... | |
A service class for getting formatted information about a block.
To obtain an instance, use MediaWikiServices::getInstance()->getBlockErrorFormatter().
Definition at line 39 of file BlockErrorFormatter.php.
MediaWiki\Block\BlockErrorFormatter::__construct | ( | TitleFormatter | $titleFormatter, |
HookContainer | $hookContainer, | ||
UserIdentityUtils | $userIdentityUtils | ||
) |
TitleFormatter | $titleFormatter | |
HookContainer | $hookContainer | |
UserIdentityUtils | $userIdentityUtils |
Definition at line 57 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.
Definition at line 78 of file BlockErrorFormatter.php.