Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Output\Hook; |
4 | |
5 | use MediaWiki\Output\OutputPage; |
6 | |
7 | /** |
8 | * This is a hook handler interface, see docs/Hooks.md. |
9 | * Use the hook name "AfterFinalPageOutput" to register handlers implementing this interface. |
10 | * |
11 | * @stable to implement |
12 | * @ingroup Hooks |
13 | */ |
14 | interface AfterFinalPageOutputHook { |
15 | /** |
16 | * This hook is called nearly at the end of OutputPage::output() but |
17 | * before OutputPage::sendCacheControl() and final ob_end_flush() which |
18 | * will send the buffered output to the client. This allows for last-minute |
19 | * modification of the output within the buffer by using ob_get_clean(). |
20 | * |
21 | * @since 1.35 |
22 | * |
23 | * @param OutputPage $output The OutputPage object where output() was called |
24 | * @return void This hook must not abort, it must return no value |
25 | */ |
26 | public function onAfterFinalPageOutput( $output ): void; |
27 | } |
28 | |
29 | /** @deprecated class alias since 1.42 */ |
30 | class_alias( AfterFinalPageOutputHook::class, 'MediaWiki\Hook\AfterFinalPageOutputHook' ); |