MediaWiki master
MediaWiki\Output\Hook\AfterFinalPageOutputHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onAfterFinalPageOutput ( $output)
 This hook is called nearly at the end of OutputPage::output() but before OutputPage::sendCacheControl() and final ob_end_flush() which will send the buffered output to the client.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "AfterFinalPageOutput" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file AfterFinalPageOutputHook.php.

Member Function Documentation

◆ onAfterFinalPageOutput()

MediaWiki\Output\Hook\AfterFinalPageOutputHook::onAfterFinalPageOutput ( $output)

This hook is called nearly at the end of OutputPage::output() but before OutputPage::sendCacheControl() and final ob_end_flush() which will send the buffered output to the client.

This allows for last-minute modification of the output within the buffer by using ob_get_clean().

Since
1.35
Parameters
OutputPage$outputThe OutputPage object where output() was called
Returns
void This hook must not abort, it must return no value

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: