wiki.techinc.nl/includes/Hook/AfterFinalPageOutputHook.php
daniel 2e57447c58 Document hook names in hook interfaces.
Bug: T258665
Change-Id: Ifddbf57f8aa2e3eb0d5845601376cbafa08ed407
2020-09-27 12:03:12 +02:00

27 lines
825 B
PHP

<?php
namespace MediaWiki\Hook;
use OutputPage;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "AfterFinalPageOutput" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface AfterFinalPageOutputHook {
/**
* 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
*
* @param OutputPage $output The OutputPage object where output() was called
* @return void This hook must not abort, it must return no value
*/
public function onAfterFinalPageOutput( $output ) : void;
}