|
MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
| onMessagePostProcessText (&$value, $format, $key) | |
| This hook is called after a message is formatted as a text format. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "MessagePostProcessText" 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 MessagePostProcessTextHook.php.
| MediaWiki\Message\Hook\MessagePostProcessTextHook::onMessagePostProcessText | ( | & | $value, |
| $format, | |||
| $key ) |
This hook is called after a message is formatted as a text format.
Use this hook if you wish to post process the message. This hook might not be called for messages constructed early in MW initialization.
| string | &$value | Formatted value of message. |
| string | $format | Either Message::FORMAT_PLAIN or Message::FORMAT_TEXT. |
| string | $key | Message key this is for (RawMessage uses value). |
Implemented in MediaWiki\HookContainer\HookRunner.