MediaWiki master
MediaWiki\Page\Hook\ArticleRevisionViewCustomHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onArticleRevisionViewCustom ( $revision, $title, $oldid, $output)
 Use this hook for custom rendering of an article's content.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ArticleRevisionViewCustom" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 16 of file ArticleRevisionViewCustomHook.php.

Member Function Documentation

◆ onArticleRevisionViewCustom()

MediaWiki\Page\Hook\ArticleRevisionViewCustomHook::onArticleRevisionViewCustom ( $revision,
$title,
$oldid,
$output )

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
Parameters
RevisionRecord | null$revisionContent of the page (or null if the revision could not be loaded). May also be a fake that wraps content supplied by an extension.
Title$titleTitle of the page
int$oldidRequested revision ID, or 0 for the current revision
OutputPage$output
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: