Page MenuHomeWickedGov Phorge

MessagePostProcessTextHook.php
No OneTemporary

Size
896 B
Referenced Files
None
Subscribers
None

MessagePostProcessTextHook.php

<?php
namespace MediaWiki\Message\Hook;
/**
* 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.
*
* @stable to implement
* @ingroup Hooks
*/
interface MessagePostProcessTextHook {
/**
* 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.
* @since 1.45
*
* @param string &$value Formatted value of message.
* @param string $format Either Message::FORMAT_PLAIN or Message::FORMAT_TEXT.
* @param string $key Message key this is for (RawMessage uses value).
*/
public function onMessagePostProcessText( &$value, $format, $key ): void;
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 15:57 (13 h, 14 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/ce/3280a7f34471c54e800801139db1
Default Alt Text
MessagePostProcessTextHook.php (896 B)

Event Timeline