|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onMessagePostProcessHtml (&$value, $format, $key) | |
| This hook is called after a message is formatted as HTML. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "MessagePostProcessHtml" to register handlers implementing this interface. If you just want to replace a message, use the MessagesPreLoad hook instead.
Definition at line 13 of file MessagePostProcessHtmlHook.php.
| MediaWiki\Message\Hook\MessagePostProcessHtmlHook::onMessagePostProcessHtml | ( | & | $value, |
| $format, | |||
| $key ) |
This hook is called after a message is formatted as HTML.
Use this hook if you wish to post process the message. The final value of $value will be used as HTML, so be careful not to introduce XSS. This hook will not be called for messages formatted early in MW initialization.
| string | &$value | Formatted value of message. |
| string | $format | One of Message::FORMAT_PARSE, Message::FORMAT_BLOCK_PARSE, Message::FORMAT_ESCAPED. |
| string | $key | Message key this is for (RawMessage uses value). |
Implemented in MediaWiki\HookContainer\HookRunner.