Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4149814
ArticleRevisionViewCustomHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ArticleRevisionViewCustomHook.php
View Options
<?php
namespace
MediaWiki\Page\Hook
;
use
MediaWiki\Output\OutputPage
;
use
MediaWiki\Revision\RevisionRecord
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ArticleRevisionViewCustom" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ArticleRevisionViewCustomHook
{
/**
* Use this hook for custom rendering of an article's content.
* Note that it is preferable to implement proper handing for a custom data type using
* the ContentHandler facility.
*
* @since 1.35
*
* @param RevisionRecord|null $revision Content of the page (or null if the revision
* could not be loaded). May also be a fake that wraps content supplied by an extension.
* @param Title $title Title of the page
* @param int $oldid Requested revision ID, or 0 for the current revision
* @param OutputPage $output
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onArticleRevisionViewCustom
(
$revision
,
$title
,
$oldid
,
$output
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 19:18 (6 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/cb/71b15993f0a1aca9a892bff58648
Default Alt Text
ArticleRevisionViewCustomHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment