Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Flow\Hooks; |
| 4 | |
| 5 | use MediaWiki\Config\Config; |
| 6 | use MessageLocalizer; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md in core. |
| 10 | * Use the hook name "FlowTermsOfUseMessages" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface FlowTermsOfUseMessagesHook { |
| 16 | /** |
| 17 | * Allows other extensions to change the terms-of-use messages. |
| 18 | * |
| 19 | * @param array[] &$messages array, map from internal name to array of parameters for MessageLocalizer::msg() |
| 20 | * @param MessageLocalizer $context |
| 21 | * @param Config $config |
| 22 | * @return bool|void True or no return value to continue or false to abort |
| 23 | */ |
| 24 | public function onFlowTermsOfUseMessages( array &$messages, MessageLocalizer $context, Config $config ); |
| 25 | } |