Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4151092
ArticleViewHeaderHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
962 B
Referenced Files
None
Subscribers
None
ArticleViewHeaderHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Page\Article
;
use
MediaWiki\Parser\ParserOutput
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ArticleViewHeader" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ArticleViewHeaderHook
{
/**
* 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
*
* @param Article $article
* @param bool|ParserOutput|null &$outputDone Whether 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.
* @param bool &$pcache Whether to try the parser cache or not
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onArticleViewHeader
(
$article
,
&
$outputDone
,
&
$pcache
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:50 (6 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
63/09/8b0aed88e5181ea5aa63305201b0
Default Alt Text
ArticleViewHeaderHook.php (962 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment