| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Parser\ParserOutput; |
| 6 | |
| 7 | /** |
| 8 | * This is a hook handler interface, see docs/Hooks.md. |
| 9 | * Use the hook name "ParserOutputPostCacheTransform" to register handlers implementing this interface. |
| 10 | * |
| 11 | * @stable to implement |
| 12 | * @ingroup Hooks |
| 13 | */ |
| 14 | interface ParserOutputPostCacheTransformHook { |
| 15 | /** |
| 16 | * This hook is called from ParserOutput::getText() to do |
| 17 | * post-cache transforms. |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 21 | * @param ParserOutput $parserOutput |
| 22 | * @param string &$text Text being transformed, before core transformations are done |
| 23 | * @param array &$options Options array being used for the transformation |
| 24 | * @return void This hook must not abort, it must return no value |
| 25 | */ |
| 26 | public function onParserOutputPostCacheTransform( $parserOutput, &$text, |
| 27 | &$options |
| 28 | ): void; |
| 29 | } |