| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Output\Hook; |
| 4 | |
| 5 | use MediaWiki\Output\OutputPage; |
| 6 | use MediaWiki\Parser\ParserOutput; |
| 7 | |
| 8 | /** |
| 9 | * This is a hook handler interface, see docs/Hooks.md. |
| 10 | * Use the hook name "OutputPageParserOutput" to register handlers implementing this interface. |
| 11 | * |
| 12 | * @stable to implement |
| 13 | * @ingroup Hooks |
| 14 | */ |
| 15 | interface OutputPageParserOutputHook { |
| 16 | /** |
| 17 | * This hook is called after adding a parserOutput to $wgOut. |
| 18 | * |
| 19 | * @since 1.35 |
| 20 | * |
| 21 | * @param OutputPage $outputPage |
| 22 | * @param ParserOutput $parserOutput ParserOutput instance being added in $outputPage |
| 23 | * @return void This hook must not abort, it must return no value |
| 24 | */ |
| 25 | public function onOutputPageParserOutput( $outputPage, $parserOutput ): void; |
| 26 | } |
| 27 | |
| 28 | /** @deprecated class alias since 1.42 */ |
| 29 | class_alias( OutputPageParserOutputHook::class, 'MediaWiki\Hook\OutputPageParserOutputHook' ); |