3 namespace MediaWiki\Page\Hook
;
6 use MediaWiki\Parser\ParserOutput
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ArticleViewHeader" to register handlers implementing this interface.
12 * @stable to implement
15 interface ArticleViewHeaderHook
{
17 * Use this hook to control article output. This hook is called before the parser
18 * cache is about to be tried for article viewing.
22 * @param Article $article
23 * @param bool|ParserOutput|null &$outputDone Whether the output for this page finished or not. Set to
24 * a ParserOutput object to both indicate that the output is done and what
25 * parser output was used.
26 * @param bool &$pcache Whether to try the parser cache or not
27 * @return bool|void True or no return value to continue or false to abort
29 public function onArticleViewHeader( $article, &$outputDone, &$pcache );