MediaWiki REL1_35
MediaWiki\Page\Hook\ArticleViewHeaderHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\ArticleViewHeaderHook:

Public Member Functions

 onArticleViewHeader ( $article, &$pcache, &$outputDone)
 Use this hook to control article output.
 

Detailed Description

Stable to implement.

Definition at line 12 of file ArticleViewHeaderHook.php.

Member Function Documentation

◆ onArticleViewHeader()

MediaWiki\Page\Hook\ArticleViewHeaderHook::onArticleViewHeader (   $article,
$pcache,
$outputDone 
)

Use this hook to control article output.

This hook is called before the parser cache is about to be tried for article viewing.

Since
1.35
Parameters
Article$article
bool&$pcacheWhether to try the parser cache or not
bool | ParserOutput&$outputDoneWhether the output for this page finished or not. Set to a ParserOutput object to both indicate that the output is done and what parser output was used.
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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